Ashy
08-12-02, 10:52 AM
using this code to open pop up windows on a page (there are over 100 pop ups on the page)
"<script language="JavaScript">
<!--
function openWindow1(url,width,height) {
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no,location=no,directories=no,' );
}
//-->
</script>"
<a href="javascript:openWindow1('window1.htm',300,125)">link here</a>
so each link is called using a unique bit of java if u get me. this obviously works fine. the thing i want to do is when one window is opened, if you click another window link it automatically closes the other one so you can only ever have one open at once.
is this possible?
cheers chaps :)
"<script language="JavaScript">
<!--
function openWindow1(url,width,height) {
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,status=no,location=no,directories=no,' );
}
//-->
</script>"
<a href="javascript:openWindow1('window1.htm',300,125)">link here</a>
so each link is called using a unique bit of java if u get me. this obviously works fine. the thing i want to do is when one window is opened, if you click another window link it automatically closes the other one so you can only ever have one open at once.
is this possible?
cheers chaps :)