|
 |
asptoday_discuss thread: javascript event.
Message #1 by Subha Gowri <subha@i...> on Tue, 5 Feb 2002 13:03:35 +0530
|
|
Is there any event exists in javascript while closing the browser window?
I want to remove all session variables (created in the current session), on
close of browser button? Is there
any event which should be fired on close of browser window?
Message #2 by "Dmitry Brook" <brook74@h...> on Tue, 05 Feb 2002 09:22:29 +0000
|
|
Of course there are loads of event - all of them are tag specific. It means
that each HTML tag can be extended by define event(s). For instance Body can
be extended with OnLoad and OnUnload events. All you have to do to bind Java
script is to call name of JScript functions as value of attributeOnLoad or
OnUnload. Other tags have other events.
>From: Subha Gowri <subha@i...>
>Reply-To: "ASPToday Discuss" <asptoday_discuss@p...>
>To: "ASPToday Discuss" <asptoday_discuss@p...>
>Subject: [asptoday_discuss] javascript event.
>Date: Tue, 5 Feb 2002 13:03:35 +0530
>
>
>Is there any event exists in javascript while closing the browser window?
>
>I want to remove all session variables (created in the current session), on
>close of browser button? Is there
>any event which should be fired on close of browser window?
>
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Message #3 by "N. Rajavelu" <nrajavelu@q...> on Tue, 5 Feb 2002 14:57:14 +0530
|
|
onunload() event will do..but the problem is the same will be invoked while
refreshing the page also.
-----Original Message-----
From: Subha Gowri [mailto:subha@i...]
Sent: Tuesday, February 05, 2002 1:04 PM
To: ASPToday Discuss
Subject: [asptoday_discuss] javascript event.
Is there any event exists in javascript while closing the browser window?
I want to remove all session variables (created in the current session), on
close of browser button? Is there
any event which should be fired on close of browser window?
Message #4 by "Bharat Saboo" <bharatsaboo@h...> on Tue, 5 Feb 2002 16:03:30 +0530
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_05D7_01C1AE5E.A7B1F0E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You can use the onUnload() event
Regards,
Bharat Saboo
----- Original Message -----
From: Subha Gowri
To: ASPToday Discuss
Sent: Tuesday, February 05, 2002 1:03 PM
Subject: [asptoday_discuss] javascript event.
Is there any event exists in javascript while closing the browser
window?
I want to remove all session variables (created in the current
session), on
close of browser button? Is there
any event which should be fired on close of browser window?
Message #5 by "Dmitry Brook" <brook74@h...> on Tue, 05 Feb 2002 11:14:52 +0000
|
|
Sounds funny - to remove Session Variable you have to do at least submit (if
You don't use behaviors). Even if you catch by some tricky method this event
- you have to do submit - this is not good. I'd recommend You not to
esteblish Sesion Variables by invoking Popup. U can Use hidden fields -
littel bit more sophisticated, but much more better.
Cheers, DIma.
>From: "N. Rajavelu" <nrajavelu@q...>
>Reply-To: "ASPToday Discuss" <asptoday_discuss@p...>
>To: "ASPToday Discuss" <asptoday_discuss@p...>
>Subject: [asptoday_discuss] RE: javascript event.
>Date: Tue, 5 Feb 2002 14:57:14 +0530
>
>onunload() event will do..but the problem is the same will be invoked while
>refreshing the page also.
>
>-----Original Message-----
>From: Subha Gowri [mailto:subha@i...]
>Sent: Tuesday, February 05, 2002 1:04 PM
>To: ASPToday Discuss
>Subject: [asptoday_discuss] javascript event.
>
>
>
>Is there any event exists in javascript while closing the browser window?
>
>I want to remove all session variables (created in the current session), on
>close of browser button? Is there
>any event which should be fired on close of browser window?
>
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|
|
 |