Stefan Mueller wrote:
With onUnload I'm able to open a confirm box to ask if the user really'd
like to reload the page. But afterwards I'm not able to prevent the
reloading of the page if the user says 'No'.
However Randy, I guess you're right, I have to educate the users not to
reload the page while filling out the form.
IMHighlyHO it's kind of reverse thinking because your real task is not
to alert users that they gonna loose their input, but ensure that they
will *not* loose their input.
Both IE and Gesko (Firefox inclusive) have special mechanics for it
allowing you to have data store on the client side to keep the current
page snapshot. IE does it through userData behavior, Gesko through
XPCOM interfaces. For ancient (as well as modern but mentally retarded)
browsers you still can semi-mimic it through the cookies (if enabled).
It is not as simple as to disable an interface button but *much* more
convenient and appreciated by the end users.