title: Command "window.location.href" not working on HTML (Bootstrap framework)
body: <p>I'm currently working on a university project in which I need to create a simple login screen which redirects the user to another landing page. As I'm new to web programming, I searched some functions and found that the most used command is the <code>window.location.href</code>, which simply doesn't work on my code. Here it is:</p>
  
  <pre><code>&lt;button class="btn btn-lg btn-primary btn-block" type="submit" onclick="validation(this.form)"&gt;Sign in&lt;/button&gt;
    &lt;/form&gt;
  
  &lt;script language = "Javascript"&gt;
      function validation(form){
          if(form.inputEmail.value=="user@user.com" &amp;&amp; form.inputPassword.value=="user123"){
                  window.location.href('form.html');
          } 
          else {
              alert("Invalid e-mail or password.");
          }           
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I've already checked the paths, but the only method that works when you enter the valid username and password is the <code>window.open()</code></p>