document.getElementById("myButton2").innnerHTML= "New Button Text using innerHTML";
document.getElementById("myButton2").childNodes[0].nodeValue= "New Button Text using childNodes";
To get button text inside its tag name