View Single Post
  #1 (permalink)  
Old 10-01-06, 03:02 AM
daivagna daivagna is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
browser close event?

can anybody will tell me how to capture browser close event? if i use ononload event..then prob. is it is getting fired on refrashing the browser..i have used window.close() it is cool but how to get which button use has pressed..i mean window.close() alert us with yes or no whther u wanna close or not i wanna to get that vakue...my purpose is to abendone the session if some1 press yes..
Reply With Quote