Skip to content

Glossary: JavaScript Basics

textContent

Also written: .textContent

A property of a page element that holds its text. Setting it changes what the element shows.

Where the book teaches it

Related terms

document.querySelectorHTML