|
Q801 How can I use history.go(-1) in a text link?
irt.org | Knowledge Base | JavaScript | History | Q801 [ previous next ]
Q801 How can I use history.go(-1) in a text link?
Either:
<SCRIPT LANGUAGE="JavaScript"><!--
function back() {
history.go(-1);
}
//--></SCRIPT>
<A HREF="javascript:back()">Back</A>
|
Or:
<A HREF="default.htm" onClick="history.go(-1)">Back</A>
|
Even easier to just use:
<a href="javascript:history.back()">Back</a>
|
or:
<a href="javascript:history.go(-1)">Back</a>
|
Feedback on 'Q801 How can I use history.go(-1) in a text link?'
|
|
Copyright © 1996-2009 irt.org, All Rights Reserved.