The Document Object Model
The DOM is an application programming interface (API) of the hierarchy of objects inside of a typical HTML document. More specifically, the DOM refers to the structure of the document itself and how you can access and manipulate elements on the document. More or less, the DOM helps programmers by defining a standardized structure for an HTML or XML document.
The Window Object
The history object is a representation of the browser history. If you open a new tab or window with your browser, then open your console and type
history.length you will see a return value of 1. This is because you have only been to the first URL since the history object was created. The location object contains information about the current URL that you are viewing. Typing
location.href will return the entire URL name of the URL you are currently on.
The Document Object
document.createElement(). You can create an element type then assign it to a node or near a node with
We have actually been using various different DOM functions such as