Fred
01-16-2003, 11:20 PM
I cannot figure out how to get 2 onunload popups to work on one page. Only one ends up loading. The other one does nothing.
How is this accomplished? I tried putting in duplicates of the same popup code in my page, one pointing to popup.htm and the second one to popup2.htm.
<BODY BGCOLOR="#efefef" onunload="popup('popup.htm');", onunload="popup('popup2.htm');">
<script language="JavaScript">
<!--
var exit = true;
function popup()
{
if( exit )
{ window.open('popup.html','CC', 'scrollbars=no, width=575, height=450');
}
}
// -->
function clicked()
{
exit = false;
}
</script>
Fred
How is this accomplished? I tried putting in duplicates of the same popup code in my page, one pointing to popup.htm and the second one to popup2.htm.
<BODY BGCOLOR="#efefef" onunload="popup('popup.htm');", onunload="popup('popup2.htm');">
<script language="JavaScript">
<!--
var exit = true;
function popup()
{
if( exit )
{ window.open('popup.html','CC', 'scrollbars=no, width=575, height=450');
}
}
// -->
function clicked()
{
exit = false;
}
</script>
Fred