Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Script not working in pop-up window. (https://www.warriorforum.com/programming/443544-script-not-working-pop-up-window.html)

manthony 1st September 2011 03:11 PM

Script not working in pop-up window.
 
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!



All times are GMT -6. The time now is 05:58 PM.