You are here: irt.org | FAQ | JavaScript | History | Q801 [ previous next ]
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>