Information worth remembering

User Tools

Site Tools


javascript:dom

DOM

Document Object Model or DOM is how one can access various objects in a web page using Javascript. You can assign a variable to this object called document. You can access deeper using query selectors and the resulting node list or collection can be manipulated using standard expressions and using built-in methods.

Here's an example of Javascript code accessing the entire document:

const thePage = document;
javascript/dom.txt · Last modified: 2020/10/03 17:56 by admin