public interface History
Modifier and Type | Method and Description |
---|---|
void |
back()
The back() method loads the previous URL in the history list.
|
void |
forward()
The forward() method loads the next URL in the history list.
|
int |
getLength()
The length property returns the number of URLs in the history list of the current browser window.
The property returns at least 1, because the list includes the currently loaded page. Tip: This property is useful to find out how many pages the user has visited in the current browsing session. Note: Internet Explorer and Opera start at 0, while Firefox, Chrome, and Safari start at 1. Note: Maximum length is 50. |
void |
go(int step)
Loads a specific URL from the history list.
|
int getLength()
void back()
void forward()
void go(int step)
step
- A number which goes to the URL within the specific position (-1 goes back one page, 1 goes
forward one page)