title: What is the Javascript code to open this link in a New window?
body: <p>Id like this button to open the website in a New window.. Right now it opens in the same page.
  The code below is what I have in my html. the onclick event will call the setMyAdd function.</p>
  
  <pre><code>&lt;input width="167" type="image" height="45" value="Click me" src="/portals/0/schedappnt.png" id="btn3" onclick="setMyAdd(); return false;" /&gt;
  </code></pre>
  
  <p>This is what I have in my javascript :</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  var myLink = "";
  function hideMe() {
      document.getElementById('btn3').style.visibility='hidden';
  }
  function setMyAdd() {
      location.href=myLink;
  }
  function checkForChange() {
      // var buttonSelected=selList.value;
      var buttonSelected = document.getElementById('selList').value; 
  
      // alert("Option Selected is : " + buttonSelected );
      if (buttonSelected=="optx") {
      myLink = "/HOME/ScheduleanAppointment/tabid/83/Default.aspx";
      document.getElementById('btn3').style.visibility='visible';
      } else {
      myLink = "http://offsiteschedule.zocdoc.com/remote/schedulePopup.aspx?professionalId=0&amp;amp;providerId=10754&amp;amp;locationId=20113&amp;amp;repeatPatient=True";
      document.getElementById('btn3').style.visibility='visible';
      }
  }
  &lt;/script&gt;
  
  &lt;script&gt; 
  </code></pre>
  
  <p>What do I need to modify so it opens in a new window?</p>