Click to See Complete Forum and Search --> : Trapping browser Close


Mary Beth Langston
03-28-2000, 03:22 PM
I have a site that I need to be able to trap when a user closes their browser.
The purpose is to run some vbscript to call a VB method to post the logout
date/time to the database. Thank you for any help you can give me.

Steve Cochran
03-28-2000, 04:52 PM
You can try putting something in a sub for the window_onunload event, but I
haven't had much success doing that. Putting a submit in there usually
doesn't work--the window just closes.

steve

"Mary Beth Langston" <mlangston@abced.com> wrote in message
news:38e1067e$1@news.devx.com...
>
> I have a site that I need to be able to trap when a user closes their
browser.
> The purpose is to run some vbscript to call a VB method to post the
logout
> date/time to the database. Thank you for any help you can give me.

Paul
04-28-2000, 06:38 AM
Just attach your function to the "onunload" event.

"Mary Beth Langston" <mlangston@abced.com> wrote:
>
>I have a site that I need to be able to trap when a user closes their browser.
> The purpose is to run some vbscript to call a VB method to post the logout
>date/time to the database. Thank you for any help you can give me.