Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js change button text

<button id="buttonName">Old Text</button>
<script>document.getElementById('buttonName').innerText = 'New Text';</script>
 
PREVIOUS NEXT
Tagged: #js #change #button #text
ADD COMMENT
Topic
Name
4+1 =