Using javascript history.back() fails in Safari .. how do I make it cross-browser?
<p>I am using </p>

<pre><code>&lt;a href="index.php" onclick="history.back();return false;"&gt;Back&lt;/a&gt;
</code></pre>

<p>to provide a back to previous page link. It works fine on Windows (IE/Mozilla) but fails in Safari on both Windows/Mac.</p>

<p>Is there a way to make it work on all of the systems/browsers (cross-browser/platform)?</p>

<p>If it's not possible, is there any other way using PHP etc?</p>
