add js code to change button code example
Example 1: access text inside a button from js
document.getElementById("myButton2").innnerHTML=
"New Button Text using innerHTML";
Example 2: change button text by id click java
<input type="button" value="Button Text" id="myButton1"></input>