Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | History | Q752 [ previous next ]

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

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 ?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.