History.back() – Problems With Chrome and Safari
Had a bit of an issue today with our old friend history.back(). This works fine in IE + FF:
<a href=”#” onclick=”history.back();”>Back</a>
But doesn’t seem to want to play in Chrome or Safari. So I tried to tidy up the code and be a little more strict:
<a href=”#” onclick=”window.history.back(-1);”>Back</a>
But still noy joy. In the end I went for this: More »
Tags: Chrome, Code, javascript, Safari














