JavaScript Window property: document
[this page | pdf | back links]
The document property (of the JavaScript
BOM window object) returns
the document object
currently associated with the window.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Window document (is same as document, as shown in code)<br>
<b id="element"></b>
<script>
var x = window.document;
x.getElementById("element").innerHTML = "This test inserted into window.document element";
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)