473,789 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9405
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.javas cript FAQ - http://jibbering.com/faq/
Jul 23 '05 #3
agustin
1 New Member
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
27911
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
23515
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 window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
10
9251
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 click event and I update session information to track the visibilty of some panels in a wizard type navigation ("Next >>" and "<< Back" buttons).. but the refresh button makes another event firing and takes the whole thing to a Choes.. ...
3
7427
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 behind page. I don't know the name of the page of the user control. Within the user control code behind, I'm looking for something like, this.Parent.Parent.Refresh();
1
3264
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 other input fields available to fill in. I use the JavaScript OnChange function (=clientside) that creates a querystring and does a refresh of the page. It works fine.
1
2351
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 30 secs the datagrid loses it's values. I mean it does not maintain it's viewstate. Why is it?
0
2852
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 date indicating how long it will remain in the cache. When the control navigates to a page, it saves time by displaying a cached version, if one is available, rather than downloading the page again. The Refresh method forces the WebBrowser...
2
1425
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 xmlhttp to hit to server by checking event.clientY < 0. The problem occurs when the user selects dropdownlist value from back button. Secondly i tried coding on body.unload event but it fires popup on refresh and other events as well which is not...
2
4226
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 simple as possible. Thanks in advance ganesh
0
9663
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4089
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.