how to set html text to innertext in c# code example Example: change innertext javascript element.innerText = "Hello World";