Is it possible to use javascript to handle the event of refreshing page? What i want is get notice if user do one of these behaviours:
You don't want the refresh, you want the onbeforeunload event.
http://msdn.microsoft.com/en-us/library/ms536907(VS.85).aspx
Sample code from article
Click here to navigate to
www.microsoft.com