JavaScript Window property: history
[this page | pdf | back links]
The history property (of the JavaScript
BOM window object) returns
the history object for the window.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Window history: <b id="element1"></b><br>
history length: <b id="element2"></b><br>
<script>
var x = window.history;
document.getElementById("element1").innerHTML = x;
document.getElementById("element2").innerHTML = x.length;
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)