PDA

View Full Version : how to open two mini pop up window



that Dude
03-02-2005, 07:03 PM
I like to have the fetures to open two mini pop up windows per page using less Java codes.

Currently I am using following code:
<a href="javascript:void(window.open('../mypath/bla.html','_newwindow', 'toolbar=no,location=no,status=no,directories=no,menubar=no,scrolling=no,scrollbars=yes,width=480,height=360,resize=no'))">bla bla</a>

Now the problem is, it doesn't let you open two seperate window for two links. What I am trying to say is that after opening the first one if I click the next link (which has a different window size requirement) new contents replaced the first window. I tried using target=_blank code but it doesn't work. Can someone please help me to resolve this? Thanks!

cr3ative
03-03-2005, 11:43 AM
I think you need to change the new window's name each time, like so:


<a href="javascript:void(window.open('../mypath/bla.html','_newwindow', 'toolbar=no,location=no,status=no,directories=no,menubar=no,scrolling=no,scrollbars=yes,width=480,height=360,resize=no'))">bla bla</a>

cr3ative

that Dude
03-03-2005, 09:03 PM
it works. Thank you!