AvailabilityJavaScript 1.0 Synopsiswindow.history frame.history history Properties
Methods
DescriptionThe History object represents the browsing history of a window -- it maintains a list of recently visited web pages. For security and privacy reasons, however, the contents of this list are not accessible to scripts. Although scripts cannot access the URLs represented by the History object, they can use the length property to determine the number of URLs in the list and the back( ), forward( ), and go( ) methods to cause the browser to revisit any of the URLs in the array. ExampleThe following line performs the same action as clicking a browser's Back button: history.back( ); The following performs the same action as clicking the Back button twice: history.go(-2); See AlsoThe history property of the Window object, Location |