Results 1 to 2 of 2

Thread: pop up windows

  1. #1
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default pop up windows

    Hi

    How would I create a link that opens maybr 2 or 3 pop up windows when the user clicks on the link?

    Many thanks
    Michael

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Something like this perhaps:

    Code:
    <script type="text/javascript">
    
    function popup(urls){
    for (var i=0; i<arguments.length; i++)
    window.open(arguments[i])
    return false
    }
    
    </script>
    
    <a href="default.htm" onClick="return popup('http://google.com', 'http://yahoo.com')">Click here</a>
    Warning: Google toolbar with popup blocker installed may disable the above script.

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
  •