After user goes away from page
Quote:
> > onbeforeunload; onunload
> http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/author/defau...
> but with onUnload I can not cancel this action, all time the user goes away
> and onBeforeUnload works only in IE 5 :((((
works in IE4+ and possibly NN6 but probably not NN4.x
Even in browsers that support it, you can't cancel the unload from onbeforeunload, only the user can
in response to whatever prompt you supply. If they want to leave, you can't really stop them (and
forcing them back into a new copy of the page in a new window doesn't count and is likely to just
make your site very unpopular...).
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--