title: What's the differences between window.location.href and <a href></a>?
body: <p>I have just read some concept about window.location property and method.
  And I know that </p>
  
  <pre><code>1. window.location.href = "http://google.com"
  2. window.location.assign("http://google.com")
  3. window.location.replace("http://google.com")
  </code></pre>
  
  <p>are all can redirect our page to the target url, the only difference is that window.location.replace doesn't record the history, so we cannot get back to the previous page directly. </p>
  
  <p>Now I just wondering, <strong>what's is the difference between</strong> <code>window.location.href</code> and <code>&lt;a href="http://google.com"&gt;Google&lt;/a&gt;</code>, the <code>&lt;a&gt;</code> tag also records the history. 
  And for what situation do we use them respectively?</p>