Open 2 windows on 1 click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rizwanrajput
    New Member
    • May 2010
    • 13

    Open 2 windows on 1 click

    I want to open 2 windows on 1 click. 1st window is a javascript banner code i.e.
    Code:
    <script type="text/javascript" src="http://ads.clicmanager.fr/exe.php?c=17346&s=29646&t=1&q="></script>
    and second window can be any site like google or yahoo which can be easily open by using window.open but I want to open both windows on one banner click and the banner is in the first javascript.

    Wheneven someone clicks on banner, i want 2 windows to be open, first will be the ad window and second will be my own window (google/yahoo etc).
  • BearCat97
    New Member
    • Jul 2008
    • 4

    #2
    Try this...

    Will this work for you?

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function open_win() {
        window.open("http://www.google.com/", 'window01', 2000)
        window.open("http://www.yahoo.com/", 'window02', 5000)
    }
    </script>
    </head>
    
    <body>
    <form>
    <input type=button value="Open Windows" onclick="open_win()">
    </form>
    </body>
    
    </html>

    Comment

    • rizwanrajput
      New Member
      • May 2010
      • 13

      #3
      As you can see, my one website is not a website, it's a javascript banner code so I cannot open it with window.open

      Comment

      Working...