Javascript function, on web page close

Posted by AXheladini on Stack Overflow See other posts from Stack Overflow or by AXheladini
Published on 2010-05-18T14:15:43Z Indexed on 2010/05/18 14:20 UTC
Read the original article Hit count: 300

Filed under:
|
|

Hello there, I have an problem that i can not solve. The problem is this way: When i close my page on some browser i want an message box to appear and to ask me if I really want to close the page or not.

logically: click on x (close tab on web browser) and than the box appears with two buttons yes and now, if i click yes the page will be closed if i click no the page will not close.

I know there must be some javascript or ajax code but i can not configure it by my self.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about close