The DOM

  • Stands for Document Object Model
  • A bunch of related JavaScript objects that represent the HTML content of the page
  • HTML elements each have a bunch of related properties
    • Text Content
    • Attributes (class, id, styles, other)
  • These objects are kept in sync with the page
  • You can read values from these objects to get user input
  • You can write values for certain properties to change the page

19 / 24