Browse > Home / Archive: July 2009

| Subscribe via RSS

History.back() – Problems With Chrome and Safari

July 6th, 2009 | 11 Comments | Posted in Code, Technical, Websites

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: , , ,