Inside JavaScript

The history Object

The history object holds the list of sites the web browser has visited in the current session, called the history list . The history object gives you access to methods that let you move back and forth in the browser's history list. You can see the properties and methods of the history object in Table 10.10.

Table 10.10. The Properties and Methods of the history Object

Properties

Methods

current

back

length

forward

next

go

previous

 

I'll take a look at the history object's properties and methods here, starting with its properties.

Категории