JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 




History Object


Tutorials Javascript

Topic

How to go backward or forward pages using javascript?



Explanation
History Object has the complete list, information of url/links visited during this session. Its methods or functions can be used to move forward(next page) or backward(previous page). We can also go to any link or url page in the history list.

It also has the following properties
PropertyDescription

next

Property "next" represents the next page url in the history object list, if any.

previous

Property "previous" represents the previous page url in the history object list, if any.

current

Property "current" represents the current page url in the history object

length

Property "length" returns the number of objects in the history list.


Methods or Function:
The following are the methods defined under history object.




A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting