title: avascript:history.go(-window.history.length) does not work
body: <p>I am doing mobile html page via phonegap
  I want to redirect user to first page. So I cannot give direct link such as a href to index.html</p>
  
  <p>When User click logo I want to calculate page length that he visited and use <code>history.go</code>.</p>
  
  <pre><code> &lt;a href="#" onclick="goBack();return false;" &gt;&lt;img class="main-logo" src="Content/Media/Images/logo.png"&gt;&lt;/a&gt;
  
  
    function goBack() {
  
  var backLength=window.history.length;
      javascript:history.go(-backLength);
  }
  </code></pre>
  
  <p>but this does not work, no error but don't redirect</p>