title: window.open('url', '_self') not working
body: <p>So i wanted to open a new page replacing the current one, i found that the method should be putting the second parameter on _self but nothing happen...
  By the way, if i use the _blank parameter or i left it empty it opens in a new page. The rest of the function works good, but i can't find a way to close the current page and open the new one that i want.
  Here is the javascript and the html buttom that call the function.</p>
  
  <pre><code>    &lt;button id="rgstr_btn" type="submit" class="btn btn-info" onClick="store()"&gt;Register&lt;/button&gt;   
        &lt;script&gt;
                  function store() {
                  localStorage.setItem('nome', nome.value);
                  localStorage.setItem('pw', pw.value);
                  window.open('url', '_self');
              }
  &lt;/script&gt;
  </code></pre>