how to hook up default beforeunload event on an aspx page ?
- by Nikhil Vaghela
I have a custom web part placed on one of the application page in SharePoint. This page it seems already have a function which gets executed on windows beforeunload javascript event.
My problem is that i too need to execute some client side code (to prompt user for any unsaved changes in my web part) on windows beforeunload event.
How can i achieve this ? I mean let the default event be fired as well as call my function also ?
Appreciate any help.
Nikhil.