<button id="buttonName">Old Text</button> <script>document.getElementById('buttonName').innerText = 'New Text';</script>