title: How to open a new window in the same page
body: <p>I have a button:</p>
  
  <pre><code>&lt;button&gt;Click&lt;/button&gt;
  </code></pre>
  
  <p>I want click it and open a new window in the same page, I bind the click event an event handle:</p>
  
  <pre><code>$('button').click(function () {
      var newurl="http://" + window.location["host"] + ";
      window.open(newurl, '_parent');
  })
  </code></pre>
  
  <p>But is always open in new tab or new window, the second parameter I have try <code>_self</code> <code>_top</code>.
  I even have try <code>window.location.href(newurl)</code></p>
  
  <p>So how can I solve this problem?Does it matter with browser or OS? I view it in Mac OS's firefox and chrome.</p>