title: jquery mobile window.location.href Page jump error
body: <p>help me!
  I use <code>window.location.href</code> jump page but it is wrong 
  code:</p>
  
  <p>jquery</p>
  
  <pre class="lang-js prettyprint-override"><code>function  onclick(){
       window.location.href="#main"
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div data-role="page" id="login" class="ui-body-e"&gt;
  &lt;div data-role="content"&gt;   
          &lt;input type="button" onClick="onclick()" value="ok"/&gt;       
  &lt;/div&gt;
  &lt;div data-role="page" id="main" class="ui-body-e"&gt;
  &lt;div data-role="content"&gt;   
          &lt;li&gt;&lt;a href="#login"&gt;Login&lt;/a&gt;      
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>error: E:\Dockmate_hbx10\Dockmate\assets\www\  contains invalid path.
    Sometimes can be the jump,This is why?</p>
  </blockquote>