how to get text value of a button js code example Example: get button text javascript document.querySelector("button .button-class").innerText();