History.next

JavaScript 1.1+, ECMAScript 1.0+, JScript 3.0+ Nav3+, IE 4+ Syntax

history.next

Description

The next property of the History object is used to get the URL for the next entry in the history list.

Note

In Navigator 4 and later, getting the next value requires the UniversalBrowserRead privilege.

Example

Listing 7.299 shows an example of how the next property is used to get the next URL in the history list. If nothing is displayed for the nextURL, you are at the end of the history list.

Listing 7.299 Example of the next Property
<html>
<head>
<title> Using the next property of the History object</title>
</head>
<body>
							 <script language="JavaScript"> <!-- Hide // request the Universal Browser Read privilege netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.