title: Reload page with different anchor
body: <p>Just got stuck with one problem. I have a page with Jquery UI tabs. Each tab can be accessed from different page by adding a hash tag to the link and it loads the page with the tab that I need. However, I also need to access different tabs within the same page. What I came up with is to add <strong>target="_parent"</strong> to the link with hash tag:</p>
  
  <pre><code>&lt;a href="pictures.htm#tab2" target="_parent"&gt;
  </code></pre>
  
  <p>and it does what I need but only in IE. It reloads the page with different hash tag but for some reason Chrome and Firefox load the same tab every time. What I need is to create a <strong>javascript function for the link which will fully reload the page with different hash tag</strong>.</p>
  
  <p>I came up with this code:</p>
  
  <pre><code>function gototab(reload)
     {
      window.location.href = 'pictures.htm#tab2';
      window.location.reload(true);
     }
  
  &lt;a href="pictures.htm#tab2" onclick="gototab();"&gt;open tab 2&lt;/a&gt;
  </code></pre>
  
  <p>I feel like I almost closed it but something is wrong with my script. Can anybody help me to solve it?</p>
  
  <p>Thanks!</p>