I've added a new FAQ to the Javascript archives.
faq216-6708
This FAQ gives sample code on how to warn a user before they leave the page - and give them the option of remaining on the page (in the context of the example, this only happens once the form on the page is changed, but not submitted).
I've used this code concept recently for IE6, IE7 and Firefox in Windows without any problems.
I hope others can get some re-use from it!
Cheers,
Jeff
[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]
Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!
FAQ216-6094
faq216-6708
This FAQ gives sample code on how to warn a user before they leave the page - and give them the option of remaining on the page (in the context of the example, this only happens once the form on the page is changed, but not submitted).
I've used this code concept recently for IE6, IE7 and Firefox in Windows without any problems.
I hope others can get some re-use from it!
Cheers,
Jeff
[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]
Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!
FAQ216-6094