Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q752 Is there an HTML command that emulates the 'Back' button on the navigation bar ?

You are here: irt.org | FAQ | JavaScript | History | Q752 [ previous next ]

No.

However, combining HTML and JavaScript you can emulate one:

<FORM><INPUT TYPE="BUTTON" VALUE="BACK" onClick="history.back()"></FORM>

or:

<FORM><INPUT TYPE="BUTTON" VALUE="BACK" onClick=".history.go(-1)"></FORM>

A third example of how to use history.go in a text link.

<a href="javascript:history.go(-1)">your link here</a>

Feedback on 'Q752 Is there an HTML command that emulates the 'Back' button on the navigation bar ?'

©2018 Martin Webb