change text on button java code example Example: change button text by id click java <input type="button" value="Button Text" id="myButton1"></input>