Document Object Model

HTML:

JavaScript DOM link

Some Useful document Methods:
  getElementById - retrieve an object on the page given its ID
  getElementsByTagName - get all elements of a specified tag type
  getAttribute - get an attribute on a tag
  innerHTML - the HTML to be displayed for a tag

More here: JavaScript DOM document link

"Harry Potter"


Results of JavaScript DOM scripting: