Script not working in pop-up window.

0 replies
Hello Fellow Warriors,
I need a little help on an exit pop-up script...
The script works fine in a regular browser window...
But when the pop-up window appears, and then, ex'd out, the script does not work.

For instance:
If I go to site xyz.com in a new browser and close that window, the script works (popup appears)
When I close that window out (popup window [abc.com]) the script does not work (no popup).
If I open a new window and go to abc.com (the popup url) and close that out the script works fine.

So the script does not work when it is a popup window; but does when it is opened in a new browser window.

Any help would be appreciated.

<head>
<scriptlanguage="JavaScript"type="text/javascript">
<!--
function unloader() {
SW=window.open(
'http://hupty.com/dwnoffer.html','NewWin','location=yes,menubar=yes,resizable=yes,toolbar=ye s,status=yes,scrollbars=yes, width=850,height=635')
}
// -->
</script>
</head>

<body onunload="unloader();">

Same script for both url's
Thank you!

#popup #script #window #working

Trending Topics