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

Q922 In Internet Explorer 3 how can I use the history object to go back two locations in the history of the browser?

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

Q922 In Internet Explorer 3 how can I use the history object to go back two locations in the history of the browser?

Internet Explorer 3 only supports -1, 0 or 1 as parameters to the history objects go() method.

The only possible workaround, is a frameset with a hidden frame that chnages the location of another frame twice by using the go() method twice in a row, although you'll not be able to correctly identify when the location has changed back, because Internet Explorer 3 returns zero as the value of the history objects length property - you would just have to wait a predetermined time before changing the other frames location back again:

<script language="JavaScript"><!--
function goBack1() {
    parent.otherFrameName.history.go(-1);
    setTimeout=('goBack2()',1000); // go back 2nd time after a seconds delay
}

function goBack2() {
    parent.otherFrameName.history.go(-1);
}
//--></script>

Feedback on 'Q922 In Internet Explorer 3 how can I use the history object to go back two locations in the history of the browser?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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