Results 1 to 3 of 3

Thread: how to open two mini pop up window

  1. #1
    Join Date
    Mar 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to open two mini pop up window

    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!

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Mar 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    it works. Thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •