title: Open links in new window with JavaScript
body: <p>hi I have a Js image changer with corresponding links how to I open links in new window ?</p>
  
  <pre><code>     &lt;script type="text/javascript"&gt;
  
          //#1 SPECIFY number of slideshows
          var number_of_slideshows=3
  
          // (2000=2 seconds)
          var interval=3500
  
          //#3 SHOULD each slide be linked to a unique URL
          var linked=1
  
          var slideshows=new Array(number_of_slideshows)
          for (i=0; i &lt;number_of_slideshows; i++)
          slideshows[i]=new Array()
  
          //#4 SPECIFY image paths of 1st slideshow
          slideshows[0][0]='images/brownie.png'
          slideshows[0][1]='images/land.jpg'
          slideshows[0][2]='images/palmer.jpg'
          slideshows[0][3]='images/add.jpg'
  
  
          var slidelinks=new Array(number_of_slideshows)
          for (i=0; i &lt;number_of_slideshows; i++)
          slidelinks[i]=new Array()
  
          //#5 SPECIFY urls of 1st slideshow
          slidelinks[0][0]='http://www.browning.com'
          slidelinks[0][1]='http://www.lakelandfishery.com'
          slidelinks[0][2]='http://www.palmeroni.com'
          slidelinks[0][3]='http://www.palmeroni.com'
  
  
  
          function clickredir() 
  </code></pre>
  
  <p>{
       window.open("http://www.browning.com","","")
        window.open("http://www.lakelandfishery.com","","") 
         window.open("http://www.palmeroni.com","","") 
          window.open("http://www.palmeroni.com","","")<br>
  } </p>
  
  <pre><code>&lt;/script&gt;
  
            &lt;script&gt;
  
          var maininc=0
          var subinc=0
  
          if (linked)
          document.write('&lt;a href="javascript:clickredir()"&gt;&lt;img src="'+slideshows[0][0]+'" name="multislide" border=0&gt;&lt;/a&gt;')
          else
          document.write('&lt;img src="'+slideshows[0][0]+'" name="multislide"&gt;')
  
          function slideit(){
          subinc= (subinc&lt;slideshows[maininc].length-1)? subinc+1: 0
          document.images.multislide.src=slideshows[maininc][subinc]
          }
  
          function setslide(which){
          clearInterval(runit)
          maininc=which
          subinc=0
          runit=setInterval("slideit()",interval)
          }
  
          runit=setInterval("slideit()",interval)
  
          &lt;/script&gt;
  </code></pre>