Avatar of cmleung2
cmleung2

asked on 

onunload with window.open doesn't work

I have the following javascript, call by onunload, it does call the function when I press the X browse button, it gives me the 'test user exit' alert, but it doesn't open the popup when call window.open.  What went wrong?  I am using IE 6, and the page is asp.net  Please help.  Thanks.

function userexit(){
  var wparams='width=400,height=520,top=100,left=100';
  alert('test user exit');
  window.open('UserExit.aspx','FeedbackWindow','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,' + wparams);
}

<body bgcolor="#FFFFFF" text="#000000" class="ChatBackground"  onunload="javascript:userexit();">
JavaScriptASP.NET

Avatar of undefined
Last Comment
cmleung2

8/22/2022 - Mon