Setzen Sie den Text des DOM -Elements
document.getElementById("myBtn").textContent = 'Hello World';
Nasty Narwhal
document.getElementById("myBtn").textContent = 'Hello World';
var x = document.getElementById("myScript").textContent