How can use history.go(-1) but ignore hash fragments?
<p>I have the following links:</p>

<pre><code>index.php
test.php
test.php#tab1
test.php#tab2
</code></pre>

<p>On the <code>test.php</code> page I click on link <code>#tab1</code>, and then <code>#tab2</code>. I want clicking on the back link:</p>

<pre><code>&lt;a href="javascript: history.go(-1);" title="Back"&gt;« Back&lt;/a&gt;
</code></pre>

<p>...to go back to <code>index.php</code>.</p>

<p>Any ideas ?</p>
