469,356 Members | 1,994 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 9235
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Prince | last post: by
1 post views Thread by batista | last post: by
2 posts views Thread by mac | last post: by
2 posts views Thread by fuehrer | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.