javascript count innertext of html code example Example: change innertext javascript element.innerText = "Hello World";