close BTN & other

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
moiseszaragoza
Forum Commoner
Posts: 87
Joined: Sun Oct 03, 2004 4:04 pm
Location: Ft lauderdale
Contact:

close BTN & other

Post by moiseszaragoza »

i am thinking if there any way to test for this.

i mean if there is anyway of knowing if the end user press the X btn to close the window or tab

of is my only option a onUnload



and if there any way of knowing what interface btn they presses (Back, fowerth, X, Home)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I am not sure that there is a way to check for the close button. Although, I think I have seen sites that, when the window is closed, it triggers and event that fires an alert. But I am totally not sure how to do it.
User avatar
moiseszaragoza
Forum Commoner
Posts: 87
Joined: Sun Oct 03, 2004 4:04 pm
Location: Ft lauderdale
Contact:

Post by moiseszaragoza »

if by any chance you can give me the address of those sites i would apreciate it

thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

If I can remember, when I come across one I will make sure to post the links.
Z3RO21
Forum Contributor
Posts: 130
Joined: Thu Aug 17, 2006 8:59 am

Post by Z3RO21 »

Post Reply