JScript question

Results 1 to 2 of 2

Thread: JScript question

  1. #1
    Join Date
    Dec 1969

    Default JScript question

    Actually its a client side Javascript question. We want to popup a survey window when someone leaves our webpage. I&#039;m using ONUNLOAD event to capture that. Only problem is that this event gets triggered even on page refresh. <BR>Please let me know if you know a way to avoid that.<BR>Following is the code I&#039;m using:<BR>======================================== ===<BR>&#060;Script&#062;<BR>function fLaunchsurvey(){<BR> popup(&#039;1&#039;,&#039;E&#039;);<BR>}<BR>&#060;/script&#062;<BR>&#060;body onunload="fLaunchSurvey();"&#062;<BR>============= ===============================<BR>Thanks a lot guys..

  2. #2
    Join Date
    Dec 1969

    Default RE: JScript question

    A page refresh unloads the current document and then reloads it. <BR>Given this information, no, there is not a way to avoid it, that I know of. <BR><BR>Check Doc Javascript, he knows more than me. http://www.webreference.com/js/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts