title: Something strange happens with the redirects
body: <p>Good, I had a code in which I tried to make a redirect, but these did not work, it seemed to refresh only the page, but it did not redirect.</p>
  
  <p>I have simplified the code to see if something conflicted out of desperation to the world that I have left a function with only a redirect, and the same thing is still happening. Running the function appears to refresh the page, but does not redirect it.</p>
  
  <p>All this does not redirect me (I put the google web example)
  I have tried the following options individually but only one of them works</p>
  
  <pre><code>function sendForm(){
  
      window.location.href = "http://www.google.es"; // DONT WORK
      location.href = "http://www.google.es"; // DONT WORK
      location.assign("http://www.google.es"); // DONT WORK
      $(location).attr('href', "http://www.google.es"); // DONT WORK
      window.location.replace("http://www.google.es"); // DONT WORK
  
      window.open("http://www.google.es"); // YEEEEES WORK
      window.open("http://www.google.es","_self"); //  DONT WORK
  
  }
  </code></pre>
  
  <p>Only works for me window.open I have tried to set the _self parameter to simulate the same action but in that case it does not work.</p>
  
  <p>It looks like the page refreshes but the redirect does not.</p>
  
  <p>I also put the html code in case the error is there</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"&gt;
  &lt;link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"&gt;
  &lt;title&gt;Login page&lt;/title&gt;
  &lt;!-- Bootstrap grid --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"&gt;
  &lt;!-- Bootstrap grid --&gt;
  &lt;link rel="stylesheet" href="styleLogin.css"&gt;
  &lt;script src="login.js"&gt;&lt;/script&gt;
  &lt;script src="jquery-3.1.1.min.js"&gt;&lt;/script&gt;
  
  
  &lt;body&gt;
  &lt;div class="container"&gt;
      &lt;img class="img-responsive logo" id="logotipo" src="logotres.png" alt=""&gt;
      &lt;form name="login" action="" method="post"&gt;
          &lt;input type="text" id="email" placeholder="User"&gt;
          &lt;input type="password" id="pass" placeholder="Password"&gt;
          &lt;button id="send" onclick="sendForm()"&gt;Enter&lt;/button&gt;
          &lt;div class="moreoptions"&gt;
              &lt;div class="ico"&gt;
                  &lt;span class="glyphicon glyphicon-lock" aria-hidden="true"&gt;&lt;/span&gt;
                  &lt;a href="#"&gt;I forgot my password&lt;/a&gt;
              &lt;/div&gt;
              &lt;div class="ico"&gt;
                  &lt;span class="glyphicon glyphicon-save" aria-hidden="true"&gt;&lt;/span&gt;
                  &lt;a href="#"&gt;Register&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm a little frustrated because I can not find out why this does not work</p>