text inside button js code example
Example 1: access text inside a button from js
document.getElementById("myButton2").innnerHTML=
"New Button Text using innerHTML";
Example 2: access text inside a button from js
document.getElementById("myButton2").childNodes[0].nodeValue=
"New Button Text using childNodes";