In JavaScript, there are three main ways to access or modify the text content of a node:
-
innerText -
textContent -
nodeValue/data(for text nodes)
In JavaScript, there are three main ways to access or modify the text content of a node:
innerText
textContent
nodeValue / data (for text nodes)
Previous Article
Next Article