alert message on window close
I have a page which have a next and previous button. when user click on next/back button, a new page will open. when ever i close the window i get the alert message. But the same message came when i click on next/previous button. I want alert message only when some one close the window.
I am using following code.
alert("The onunload event fired for the window object.");
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)