Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Lotar, as far as I know, you cannot stop a reload in a consistent way on every browsers.
As Chris pointed, if the command is placed on a link, you can use the onclik property.
The onclick is always executed first, and if the function called return false, the href will not be followed.
Now, if a user clicks the reload button, I don't think you will be able to prevent it in a cross-browser javascript code.
__________________
Only a biker knows why a dog sticks his head out the window.
|