473,390 Members | 1,159 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,390 software developers and data experts.

How do I trap the Refresh page events?

Dear All,
I would like to disable the Refresh events like (F5, Ctrl+R,
RightClick Mouse + Refresh, Ctrl+N)...
I have been able to solve F5 and RightClick Mouse + Refresh...how to I
trap or ignore Ctrl+R or Ctrl+N...

Please help

TALIA

Many Regards
Sunil
Jul 23 '05 #1
3 9386
Jack Wright wrote:
I would like to disable the Refresh events like (F5, Ctrl+R,
RightClick Mouse + Refresh, Ctrl+N)...
I have been able to solve F5 and RightClick Mouse + Refresh...how to I
trap or ignore Ctrl+R or Ctrl+N...


It cannot reliably be done. Instead what you do is identify what makes
the user refreshing the browser a problem and fix that. It is usually a
server-side process that has been designed in a way that is not
appropriate for its operation over HTTP. A little more thought in the
area of server side session management can usually render a client's
attempts to refresh a page insignificant.

Richard.
Jul 23 '05 #2
Jack Wright wrote:
Dear All,
I would like to disable the Refresh events like (F5, Ctrl+R,
RightClick Mouse + Refresh, Ctrl+N)...
I have been able to solve F5 and RightClick Mouse + Refresh...how to I
trap or ignore Ctrl+R or Ctrl+N...


Its easy, you don't. Besides, Ctrl+N doesn't refresh the page, it opens
a new window with the same document. Fix the problem that refresh causes
and your problems go away.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #3
Dear All,
I would like to disable the Refresh events like (F5, Ctrl+R,
RightClick Mouse + Refresh, Ctrl+N)...
I have been able to solve F5 and RightClick Mouse + Refresh...how to I
trap or ignore Ctrl+R or Ctrl+N...

Please help

TALIA

Many Regards
Sunil
Hi Talia, I'm agustín and i was wondering if you can show me how you disable thats events.
Thanks
Mar 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matt | last post by:
By using javascript, is it possible to disable the REFRESH functionality (F5 or refresh icon) in a browser? Please advise. Thanks!!
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
3
by: Prince | last post by:
How can I refresh a page from the code behind pages? I know Server.Transfer("<same page>") works. However, I am refreshing a page from a Button within a user control which has it's own code...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
1
by: batista | last post by:
Hello, I have a web page, which is being refresh after every 30 secs.Now, there is also a datagrid in it, which i bind in the pageload event. Now the problem is when the page is refresh after...
0
by: cweeks | last post by:
>From the MSDN documentation for WebBroswer.Refresh(): "The WebBrowser control stores Web pages from recently visited sites in a cache on the local hard disk. Each page can specify an expiration...
2
by: mac | last post by:
I am building web applcation using ASP.NET on IE 6.0. The requirement is to show a popup when user clicks back button and perform clean up operation. Does anybody knows how to do it. I am using...
2
by: fuehrer | last post by:
Hi guys, Is there any way i can trap the click event of the close, refresh, back,home and the forward button? Also i need this to work for both firefox and IE. I'm new to JS so please make it as...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.