change button text on click w3schools
/* element to change the text color: Another example on how to change the color of an element: Click to copy text from one input field to another: How to assign an "onclick" event to the window object: onclick is a DOM Level 2 (2001) feature. Then, we use this function as the value of the onClick prop. Use the textContent property to change the button's text. To change the button text, first we need to access the button element inside the JavaScript by using the document.getElementById() method and add a click event handler to the button, then set its value property to blue. Create a push button. If that's what you need this will work. Then after we create
tag and a button.