tags:

views:

1803

answers:

2

Is there an alternative to history.go(-1) for FireFox and Safari. Any Help would be greatly appreciated.

+8  A: 

You can use history.back().

Anteru
+1  A: 
<a href="javascript:history.go(-1)">Link</a>

Should work though.

Because, indeed, the following does not work in Firefox:

<a href="#" onclick="Javascript:goback();">some Text</a>

function goback() {
   history.go(-1);
}

Is that what you were doing ?

VonC
Is that also true if the goBack() function would return false?
Pim Jager