470,855 Members | 1,135 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Trapping refresh / reload

Does anyone know how the refresh is trapped at www.nwolb.com. It seems
to trap the refresh, using F5 key as well as the reload button, and
gives the user a pop to allow them to continue or cancel the event.

I've looked at the source code and it does not seem to be in there. I
also know that they only support IE - so is/ could it be IE specific?

Thanks
T
Jul 23 '05 #1
2 1679
IE supports the onBeforeUnload event
http://msdn.microsoft.com/workshop/a...foreunload.asp.
This event is fired before the onUnload event allowing the code to prompt
the user to make sure they want to leave. Mozilla 1.7 now supports the
onBeforeUnload event http://mozilla.org/releases/mozilla1.7rc1/README.html
but who knws how long it will be before Netscape switches to the new version
of Mozilla.

"Tipu Sattar" <ti********@hotmail.com> wrote in message
news:8f**************************@posting.google.c om...
Does anyone know how the refresh is trapped at www.nwolb.com. It seems
to trap the refresh, using F5 key as well as the reload button, and
gives the user a pop to allow them to continue or cancel the event.

I've looked at the source code and it does not seem to be in there. I
also know that they only support IE - so is/ could it be IE specific?

Thanks
T

Jul 23 '05 #2
Mike wrote:
IE supports the onBeforeUnload event
http://msdn.microsoft.com/workshop/a...foreunload.asp.
This event is fired before the onUnload event allowing the code to prompt
the user to make sure they want to leave. Mozilla 1.7 now supports the
onBeforeUnload event http://mozilla.org/releases/mozilla1.7rc1/README.html
but who knws how long it will be before Netscape switches to the new version
of Mozilla.


<url: http://www.theinquirer.net/?article=15045 />

Choose to believe it or not. I'm not sure it matters. Leaving an update to Netscape 7.1
for so long with 7.1 based on a buggy Mozilla core has done a significant amount of
damage to Netscape's reputation.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by dan baker | last post: by
4 posts views Thread by Lex | last post: by
1 post views Thread by Marco Maroni | last post: by
1 post views Thread by francois | last post: by
8 posts views Thread by Judy Ward | last post: by
2 posts views Thread by mayla_i | last post: by
12 posts views Thread by martin1 | last post: by
5 posts views Thread by =?Utf-8?B?Sm9obg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.