Results 1 to 2 of 2

Thread: load multiple windows with 1 click

  1. #1
    Join Date
    Sep 2005
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default load multiple windows with 1 click

    I am looking to load multiple windows with a single click.

    Something like popups, I suppose..

    The idea is I work as a tech support guy for an ISP and I am trying to save some time by loading all my tools with one link.

    Any guidance would be much appreciated..!
    Thank you!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Sure, use window.open(), example:
    HTML Code:
    <a href="leaves.html" target="_blank" onclick="window.open('date.htm');window.open('blank.htm');window.open('bubble_leaves.htm');return true;">Link</a>
    The window.open() method accepts parameters so you can even specify height and width for each window as well as top and left coordinates for its upper left corner on the screen. Once you do that however, you also have to specify any 'chrome' and properties (like scrollbars, address bar, toolbar, etc.) that you want the window to have, ex:
    Code:
    window.open('some.htm', '', 'width=500, height=450, top=20, left=20, scrollbars, location, toolbar, status, resizable')
    Google 'window.open() method javascript' unquoted for all the details. The advantage in this is that you can plan the initial size and position of your tools on the desktop.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •