title: Javascript: open new page in same window
body: <p>Is there an easy way to modify this code so that the target URL opens in the SAME window?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="javascript:q=(document.location.href);void(open('http://example.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));"&gt;click here&lt;/a&gt;``</code></pre>
  </div>
  </div>
  </p>