Javascript function, on web page close
- by AXheladini
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.