dom innertext code example
Example 1: HTML DOM innerText
var x = document.getElementById("myBtn").innerText;
Example 2: change innertext javascript
element.innerText = "Hello World";
var x = document.getElementById("myBtn").innerText;
element.innerText = "Hello World";