History.current

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

history.current

Description

The current property of the History object contains a string that specifies the complete URL of the current history entry.

Note

In Navigator 4 and higher, getting the current value requires the UniversalBrowserRead privilege.

Example

Listing 7.295 shows an example of how the current property is used. For this example, the UniversalBrowserRead privilege must be set. Once this is done, the onClick event handler alerts the user of the History current property.

Listing 7.295 Example of the current Property
<html>
<head>
<title> Using the current property of the History object</title>
</head>
<body>
							 <script language="JavaScript"> ...

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.