I have "borrowed" the following code to open a popup window for an audio player ONLY on the front page:
========
<?php if (is_front_page()) { ?>
<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=243,height=422,top=175,scrollbars=no');
return false;
}
//-->
</SCRIPT>
</head>
<body onLoad="popup('http://www.xxx.com/rms/wp-content/uploads/rave/index.html', 'ad')">
</body>
<?php } ?>
========
I have inserted it in the loop. My question:
How to I get the same popup window to close on specific pages? Any information will be greatly appreciated. Thanks.
TB