faqts : Computers : Internet : Web : HTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 33 people (55%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How do I make a link that will act the same as the browsers back button?

Mar 2nd, 2001 15:12
Ben Gordon, Ryan Peterson,


You can create a text link that acts like the back button like this
Add this to the head section
<SCRIPT>
<!--
 function backone() {
     history.go(-1);
 }
 //-->
</SCRIPT>
and this to the body where you want the link 
<a href="javascript:backone()">Back</A>