Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: What simple HTML code lets the user go back one page?  (Read 1597 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 978
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows XP
What simple HTML code lets the user go back one page?
« 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.

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.)   :-[

?

camerongray



    Expert
  • Thanked: 298
    • Yes
    • Cameron Gray - The Random Rambings of a Computer Geek
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Mac OS
Re: What simple HTML code lets the user go back one page?
« Reply #1 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>

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 978
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows XP
Re: What simple HTML code lets the user go back one page?
« Reply #2 on: September 05, 2017, 09:15:57 PM »
Thank.
At lest that is a one line script. I can handle that. I think.  ;)