Stefan Mueller said the following on 11/3/2005 11:09 PM:[color=blue]
> I've a webpage with a dynamically created table. If the user presses F5,
> clicks on the reload button, ... the webpage reloads and the dynamically
> created table will be resetted. Is there something like an reload event
> which I can test (e.g. with a JavaScript) and ask the user if he/she really
> wants to reload the webpage and which I can cancel if the user says that
> he/she doesn't want to reload the webpage?[/color]
You can try onunload and onbeforeunload. But for the most part, you
can't do what you are trying and make it fail proof. Let your users
learn the mistake of waiting to redo what they just screwed up and they
will learn, quicker than you asking them, not to hit the F5 key/Refresh
Button.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/