简体   繁体   中英

Alternative to history.go(-1) for FireFox and Safari

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

您可以使用history.back()

<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 ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM