[Javascript] form submission

Matt Barton javascript at mattbarton.org
Mon Feb 23 06:28:20 CST 2004


There's the onUnload event of the document.body.  Supported by (I think)
netscape (since version 2) and IE (since version 3). Or you could try
playing with the onBeforeUnload event of the document.body.  But bewarned
it's IE4+/Win, IE5+/Mac only.

----- Original Message ----- 
From: "Alan Easton" <alaneaston666 at hotmail.com>
To: <javascript at LaTech.edu>
Sent: Sunday, February 22, 2004 9:33 PM
Subject: [Javascript] form submission


> Hello People,
>
> I have a 6 page registration form for customers to fill in. But I would
like
> a hidden form field submitted if the customer leaves at any time before
the
> end of the process, i.e closes the browser window or goes to another
website
> address.
>
> What javascript function should I use or look for when the customer does
> leave the process before the end. Is there an OnExit function or something
I
> should use if they leave the site to go to another site or close the
browser
> window altogether...??
>
> Any help/advice would be appreciated.
>
> Thanks,
>
> Alan...
>
> _________________________________________________________________
> Find a cheaper internet access deal - choose one to suit you.
> http://www.msn.co.uk/internetaccess
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net




More information about the Javascript mailing list