Javascript : How do you stop the user refreshing a frame and the whole screen?
I need to prevent a user from either pressing refresh/reload to refresh the whole frameset and also to stop them rightclicking on the actual fram and refreshing the frame from the popup menu. The reason for this is that there is an applet running in this frame which counts down to 0 and when refreshed it starts again at it's original value. Any suggestions would be great.
Thanks all.
John Pollock posted this at 17:03 — 9th June 2000.
He has: 628 posts
Joined: Mar 1999
You can't disable the reload/refresh buttons unless you open the page in a new window. There are a bunch of no right click scripts about, some are posted here in other discussions.
Even with both of those I could use a keyboard shortcut anyway if I really wanted to reload.
Java Script: A Beginner's Guide
Page Resource
Vincent Puglia posted this at 14:02 — 10th June 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
If you are really concerned about the applet, try writing its value to a cookie or invisible frame. Then onLoad read the value if it exists.
Vinny
------------------
my site:GrassBlade: cut&paste javascript
moderator at:The Javascript Place
Javascript City
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.