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

Q895 Using a form button can I make the current frame and another frame go back on page in their respective history objects?

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

Q895 Using a form button can I make the current frame and another frame go back on page in their respective history objects?

The following will go back in the current frame:

<form>
<input type="button" onClick="window.history.back()" value="Back">
</form>

The following will go back in another frame:

<form>
<input type="button" onClick="parent.otherFrameName.history.back()" value="Back">
</form>

The following will do both at once:

<form>
<input type="button" onClick="parent.otherFrameName.history.back();window.history.back()" value="Back">
</form>

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.