Hi all,
Can anybody let me know how to detect when my user clicks the X button
on the window. I used unload event it did not work(on IE). My web page
is a .asp page which reloads itself when navigating on the site. Now
whenever the user clicks any links on the page the unload event is
triggered which is not what I want. I only want to detect when user
clicks the X button and not when the URL changes.
code i used:
<body onunload="alert('leaving window');">
Basically this alert window is triggered everytime the URL changes and
not just when the window closes(which is what i want).
Appreciate your reply.
Kiran