i'd like to know if there's any script to 'prevent' the user in clicking the reload icon on the browser window?.. which i mean is that the page will not be reloaded even the user click the reload icon.. or is there any way to solve the problem?
This is just an idea, but I think that you generally can't prevent that. The user can always click refresh or use Ctrl-R (or something like that).
A solution might be opening the page, on which you want to disable reload, in a popup without menubars.
Then you capture all key events to prevent the user from using shortcuts.
But, I don't see why you should want to prevent such a thing? Can you tell me more on this?
Think your question about the alert is a bit the same. This is a system operation which can always be executed.
This is just an idea, but maybe you could use onblur? But after that the page will still be closed.
Gtz,
Kristof -------------------
Check out my new site:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.