Computer Hope

Internet & Networking => Web design => Topic started by: Geek-9pm on September 05, 2017, 04:44:00 PM

Title: What simple HTML code lets the user go back one page?
Post by: Geek-9pm on September 05, 2017, 04:44:00 PM
I want the user to decide to go back one page.
This is a very simple project -  I don't want pages of scrips, CSS and stuff like that.
I put this GIf in the upper left area.
(http://geek9pm.net/art/go_back.gif)
I shows an arrow and the words "Hit go back key".
Now I am thinking the user might click on the images rather tahtn fining the go back key on the browser.
So what is the simple link to go back to the prior page?
It should go up one level and start the file called 'index.html'.
(I used to know how to do this. Years ago.)   :-[

?
Title: Re: What simple HTML code lets the user go back one page?
Post by: camerongray on September 05, 2017, 05:28:24 PM
As far as I'm aware the only way to do this is to use Javascript for example:
Code: [Select]
<a href="javascript:window.history.back()>Go back</a>
or
<a href="#" onclick="window.history.back()">Go back</a>
Title: Re: What simple HTML code lets the user go back one page?
Post by: Geek-9pm on September 05, 2017, 09:15:57 PM
Thank.
At lest that is a one line script. I can handle that. I think.  ;)