In JavaScript, there are three main ways to access or modify the text content of a node:

  1. innerText

  2. textContent

  3. nodeValue / data (for text nodes)

Categorized in:

Javascript, JS DOM,