Possible Duplicate:
Alert when browser window closed accidentally
When a user clicks the browser's exit button(in a sense X) I want to open a new window.
For example, The Wordpress Admin Panel: If you are in a Wordpress panel and you want to exit, wordpress opens a new window and asks a question.
I would like to do the same.
How can i achieve this?
EDIT:
But don't exit after click. for example: www.serkanismygirl.com