Skip to main content

One doc tagged with "dom"

View all tags

DOM manipulation

An explanation of getting, manipulating, and creating HTML elements using the DOM. Covers choosing between textContent and innerHTML and the XSS caveat, plus the difference between an HTMLCollection and a NodeList, in a beginner-friendly way.