...

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



xbuddy
04-22-2004, 12: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?

l3vi
04-22-2004, 01: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)

jkd
04-22-2004, 04:29 AM
javascript:history.go(-1)

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

xbuddy
04-22-2004, 11:13 PM
Thanks for the help. This is what I was looking for.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum