title: window.history.go() with an url not working
body: <p>I am trying to make a <code>Home</code>button on my html page but I cannot get it to work.  </p>
  
  <p>This home button should always load the home page, but it should load it from the cache.<br>
  The reason for that is there a number of checkboxes on the home page and when  I do <code>window.location = "myhomepage"</code> the page is reloaded in stead of loaded from cache, and all the checked checkboxes are empty again as are other input values. </p>
  
  <p>I found that <code>window.history.back()</code> does not always works well when the user opened other pages before hitting the back button.<br>
  So I tried with <code>window.history.go("myhomepage")</code> but that does nothing at all. The page remains the same.  </p>
  
  <p>I have read the docs at <a href="https://www.w3schools.com/jsref/met_his_go.asp" rel="nofollow noreferrer">https://www.w3schools.com/jsref/met_his_go.asp</a> but it does not seem to work.
  My homepage is currently "<a href="http://localhost/test/index.php" rel="nofollow noreferrer">http://localhost/test/index.php</a>" so it tried it with this </p>
  
  <pre><code>windows.history.go("http://localhost/test/index.php")
  </code></pre>
  
  <p>but it does nothing at all.<br>
  I also tried variations like<br>
    <code>.go("localhost/test/index.php")</code><br>
    <code>.go("localhost/test")</code><br>
  but they all seem to do absolutly nothing at all.</p>
  
  <p>Is there a special trick to get the <code>window.history.go("url")</code> working ?<br>
  Or is there a better way to do this ?  </p>