12 August, 2011

HTML:- Get Browser Closed Event

Getting the browser closed event ,before close we can get the event and do something.I need this This is needed when needed to set the session null or the session should be destoryed after closed the browser.By this we can achive that...........







script type="text/javascript"

function closeEditorWarning()

{

return 'Hey, What r u Doing ? Are you sure?'

}

window.onbeforeunload = closeEditorWarning;







No comments:

Post a Comment