Page 1 of 1

close BTN & other

Posted: Tue Feb 06, 2007 2:36 pm
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)

Posted: Tue Feb 06, 2007 2:39 pm
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.

Posted: Tue Feb 06, 2007 3:04 pm
by moiseszaragoza
if by any chance you can give me the address of those sites i would apreciate it

thanks

Posted: Tue Feb 06, 2007 4:02 pm
by RobertGonzalez
If I can remember, when I come across one I will make sure to post the links.

Posted: Tue Feb 06, 2007 4:35 pm
by Z3RO21