Write a way by which you can do something on the close of the window ?

 Posted by Puneet20884 on 2/25/2010 | Category: JavaScript Interview questions | Views: 3173

call onUnload on the body tag and write your javascript code there


<body onUnload=''alert('thanks for visiting us !!')">

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response