JavaScript innerText

Javascript innerText property is used to set or return the inner text content of the targeted element and its descendants without parsing to HTML.

In other words, it returns the inner text content of the selected element as well as its descendent child elements.

Let us see it with the help of an example.

Source Code

          
            document.getElementById('result').innerText='Are you understanding javascript innerText property concept ?';          
        
Try it now

Web Tutorials

Javascript innerText Tutorial
Html Tutorial HTML
Javascript Tutorial JAVASCRIPT
Css Tutorial CSS
Bootstrap 5 Tutorial BOOTSTRAP 5
Bootstrap 4 Tutorial BOOTSTRAP 4