PDA

View Full Version : pop up window question


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 :)

TonyT
08-12-02, 11:51 PM
http://developer.irt.org/script/428.htm

http://developer.irt.org/script/648.htm

http://developer.irt.org/script/window.htm

Ashy
08-13-02, 03:10 AM
cheers mate, ill have a look at them :)