473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1810
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
4
by: Lex | last post by:
I want to reload a page only once. Therefor meta refresh is not suitable, because then it refreshes every x seconds. Is there a possibility to refresh only once? regards, Lex Ouburg
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
8
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
2
by: mayla_i | last post by:
Hello experts I have this question which confuse me! so please help me Is there a difference between clicking on the refresh button in the browser and writing this command:...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.