Sorry - text got cut off:
Doing it the old way:
window.onbeforeunload = function(){
return "Are you sure?"
}
Worked great.
Well you know - try as I like, I could NOT get the DOM method
addEventListener to work for beforeunload.
Doing it the old way:
window.onbeforeunload = function(){
return "Are you sure?"
}
I couldn't bind 'beforeunload' to the window. document, or body tag
successfully.
I had to revert to a manual 'window.beforeunload'. I know I should be
doing something like
evt = window.attachEvent ? window.attachEvent('onbeforeunload', fn) :
window.addEventListener('beforeunload', fn, false)
b
Can't put it to work... :(
I found an example, but it doesn't work too. Maybe because I'm in
firefox, on linux.. don't know.
I'm trying the .unload() jquery event now...
On Feb 22, 6:27 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> there is an "onbeforeunload" event you can use
>
> http://www.go
there is an "onbeforeunload" event you can use
http://www.google.com/search?q=javascript+onbeforeunload&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
5 matches
Mail list logo