html grab inner text js code example Example: change innertext javascript element.innerText = "Hello World";