<script> function doSomething() { document.getElementById("myButton").innerHTML = "DICK"; } </script> <button id="myButton" onclick="doSomething();">BUTTON</button>