Skip to content

Glossary: JavaScript in the Browser

textContent

A property that reads or replaces everything inside an element as plain text. It is the safe way to put text on a page.

Where the book teaches it

Related terms

innerHTMLXSS (cross-site scripting)