Thursday, 19 September 2013

window.onunload event not firing

window.onunload event not firing

I have a silverlight application in which I need to fire signout event if
user navigates away. I have tried a sample function as
window.onunload = function test() { alert("test"); }
The problem is when I navigate away from the webpage the event fires, but
I need this event to fire when user closed browser or tab.

No comments:

Post a Comment