Summary

You learned quite a bit in this chapter. You have learned some cross-browser BOM (Browser Object Model) objects:

  • Properties of the global window object such as navigator, location, history, frames, screen
  • Methods such as setInterval() and setTimeout(); alert(), confirm() and prompt(); moveTo/By() and resizeTo/By()

Then you learned about the DOM (Document Object Model), an API to represent an HTML (or XML) document as a tree structure where each tag or text is a node on the tree. You also learned how to do the following actions:

  • Access nodes
    • Using parent/child relationship properties parentNode, childNodes, firstChild, lastChild, nextSibling, and previousSibling
    • Using getElementsById(), getElementsByTagName(), getElementsByName(), and querySelectorAll() ...

Get Object-Oriented JavaScript - Second Edition 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.