title: How to go to a URL using jQuery?
body: <p>How to go to a URL using jQuery or JavaScript. </p>
  
  <pre><code>&lt;a href="javascript:void(0)"  onclick="javascript:goToURL()"&gt;Go To URL&lt;/a&gt;
  
  function goToURL(url){
  // some code to go to url
  
  }
  </code></pre>
  
  <p>I don't want to use window.location as I want to invoke this link from a popup. </p>
  
  <p>New link should also open in a popup.  I also don't want to use Ajax. Just simulate href in JavaScript.</p>