Hi,
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:
Any suggestions are more than welcome.
There's a LOT of work to do, so judge fairly.
