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