View Full Version : What is the coding for the "BACK" command

04-22-2004, 01:57 AM
When a person goes from page to page on the website, they can use the "back" command on the top left of the screen. I would like to put a "back" button on my webpage, but I haven't been able to find the coding that would do that. So far, when I look at other people's websites, the coding for the BACK button is actually hard coding to take a person back to a specific webpage. I'm looking for a generic code to move a person back to their previous page.

Any ideas?

04-22-2004, 02:11 AM
You use javascript and a link :D (not sure if theres a way without javascript)

<a href="javascript:history.back()">Back!</a>

I beleive that isi what it is, or it is something very close. (I havent been coding in Javascript for about 6 months-1 year now, so me isnt very sure :D)

04-22-2004, 05:29 AM

04-22-2004, 06:13 AM
or history.back()

04-23-2004, 12:13 AM
Thanks for the help. This is what I was looking for.