[Webkit-unassigned] [Bug 25885] Another Unbeforeunload related bug?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 20 10:15:55 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=25885
bedney at technicalpursuit.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bedney at technicalpursuit.com
------- Comment #2 from bedney at technicalpursuit.com 2009-05-20 10:15 PDT -------
Tore -
I too am tracking the variety of bugs that have to do with Webkit's poor
support for onbeforeunload. I really need to sit down and do a test case for
all of the variety of ways that this can be set. I did figure out a workaround
that, at least, works for me:
1. Either put the onbeforeunload="...function text..." on the body element
itself or
2. Put some JavaScript in your page that sets that attribute on the body as
part of the onload process, thusly:
function onloadSetup()
{
document.body.setAttribute('onbeforeunload', 'return "Do you really want to do
this?"');
}
....
And then in your markup:
<body onload="onloadSetup()">...</body>
Hope this helps.
Cheers,
- Bill
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list