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

Q987 How can I access the history array, and retrieve all the previous locations visited?

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

Q987 How can I access the history array, and retrieve all the previous locations visited?

Only in Netscape Navigator 4+:

<script language="JavaScript"><!-- 
if (document.layers) {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');
    var output = '';
    for (var i=0;i<window.history.length;i++)   
        output += window.history[i] + '\n';
    alert(output);
}
//--></script>

Feedback on 'Q987 How can I access the history array, and retrieve all the previous locations visited?'


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.