jayminkey
07-17-2009, 07:08 AM
Hi,
I have used below javascript function in body tag unload event...
<body onunload="openpopup();">
</body>
function openpopup()
{
Window.open('popupwin.asp','popUp','scrollbars=no,resizable=no,height=300,width=300');
}
Problem :
When i am refreshing the page Or click any link on page this pop up open....i want to open pop-up only when some one close the page..
How can i detect browser close event?
I am using classic ASP...
can any one help me in this?
thanks,
jaymin
I have used below javascript function in body tag unload event...
<body onunload="openpopup();">
</body>
function openpopup()
{
Window.open('popupwin.asp','popUp','scrollbars=no,resizable=no,height=300,width=300');
}
Problem :
When i am refreshing the page Or click any link on page this pop up open....i want to open pop-up only when some one close the page..
How can i detect browser close event?
I am using classic ASP...
can any one help me in this?
thanks,
jaymin