473,382 Members | 1,258 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,382 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 9385
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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.