how to put innerText in div in java code example Example: change innertext javascript element.innerText = "Hello World";