Home > Chapter Review and Exercises > Chapter 22 - Using JavaScript > Some Additional Resources
The Net Ninja JavaScript Tutorial (46 lessons in all)
The Net Ninja JavaScript DOM Tutorial
w3schools JavaScript HTML DOM (Document Object Model) <== A series of 14 lessons on the DOM
w3schools JavaScript HTML DOM Examples <== A large collection of DOM Object examples
w3schools The (BOM) Browser Object Model <== A series of 8 lessons on the BOM, including the following example:
w3schools The Browser Object Model BOM example
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Window</h2>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Browser inner window width: " + window.innerWidth + "px<br>" +
"Browser inner window height: " + window.innerHeight + "px";
</script>
</body>
</html>
The browser window appears as this:
JavaScript Window
Browser inner window width: 825px
Browser inner window height: 711px
This is actually a diagram of the BOM (Browser Object Model), as it starts with "Window," the browser's window.