[Javascript] Alert user when leaving site - Simplified
Mike Dougherty
mdougherty at pbp.com
Mon Sep 12 10:56:28 CDT 2005
My boss wanted me to trap a user leaving uncommited data in a form. "I don't want you to disable
the BACK button, just usurp it" -- I told him that was wrong for many reasons. If a user leaves
a page without hitting the submit button, they will learn that form submission won't work. I made
the request rediculous to the Nth degree by suggesting that next management will want us to trap
the windows shutdown key via javascript and prevent the computer from being turned off - or
possibly preventing power failures while our site is being viewed....
On Mon, 12 Sep 2005 09:31:35 -0500
"Conyers, Dwayne" <dwayne.conyers at hp.com> wrote:
> Triche Osborne wrote:
>
>> If you like, you can add the onclick event only to outgoing links.
>
> What if a person leaves the site without clicking a link -- say through
> the nav bar or through a link on the browser toolbar or favorites?
>
> Just curious.
>
>
> --
> Dwacon
> www.dwacon.com
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> __________________________________________________________
> This message was scanned by ATX
> 10:32:57 AM ET - 9/12/2005
More information about the Javascript
mailing list