Safari OnUnload event on user exit

applamosca

New Member
I am calling a Javascript function from the code behind by adding it the the OnUnload event, because I need it to fire when the user exits the window or navigates to a new page.\[code\]bodyName.Attributes.Add("OnUnload", "JSFucntionName");\[/code\]This function is firing on all browsers when a user refreshes or navigates to a new page, and it is firing on IE, Chrome, and Firefox when a user exits, but not on Safari.Does Safari not call the OnUnload event when the user exits the window? Or is there a work-around for calling a Javascript function in Safari on a user exit?
 
Back
Top