GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.tutorialrepublic.com — JavaScript Window History - Tutorial Republic JAVASCRIPT BASIC
JS Introduction
JS Getting Started
JS Syntax
JS Variables
JS Generating Output
JS Data Types
JS Operators
JS Events
JS Strings
JS Numbers
JS If…Else
JS Switch…Case
JS Arrays
JS Sorting Arrays
JS Loops
JS Functions
JS Objects
JAVASCRIPT & DOM
JS DOM Nodes
JS DOM Selectors
JS DOM Styling
JS DOM Get Set Attributes
JS DOM Manipulation
JS DOM Navigation
JAVASCRIPT & BOM
JAVASCRIPT ADVANCED
JS Date and Time
JS Math Operations
JS Type Conversions
JS Event Listeners
JS Event Propagation
JS Borrowing Methods
JS Hoisting Behavior
JS Closures
JS Strict Mode
JS JSON Parsing
JS Error Handling
JS Regular Expressions
JS Form Validation
JS Cookies
JS AJAX Requests
JS ES6 Features
JAVASCRIPT EXAMPLES
JAVASCRIPT REFERENCE
Advertisements
JavaScript Window HistoryIn this tutorial you will learn about the JavaScript window history object. The History ObjectThe history property of the Window object refers to the History object. It contains the browser session history, a list of all the pages visited in the current frame or window. Since Window is a global object and it is at the top of the scope chain, so properties of the Window object i.e. The following section will show you how to get the information of user's browsing history. However, for security reasons scripts are not allowed to access the stored URLs. Getting the Number of Pages VisitedThe You can use this property to find out how many pages a user has visited during the current browser session, as demonstrated in the following example: ExampleTry this code »
Going Back to the Previous PageYou can use the ExampleTry this code »
If your browser back button is active then clicking this Go Back link takes you one step back. Going Forward to the Next PageYou can use the ExampleTry this code »
If your browser forward button is active then clicking this Go Forward link takes you one step forward. Going to a Specific PageYou can also load specific page from the session history using the ExampleTry this code »
Tip: If you attempt to access the page that does not exist in the window's history then the methods Advertisements
Advertisements
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |