I was working to change the label of the button with javascript. The button is using a class but not ID. what js method will applicable?
I tried through getElementsByClassName but this not worked
HTML:
<button type="button" class="window_open">Submit</button>
JS Code:
var status="Newlabel";
document.getElementsByClassName("window_open").innerHTML=status;
I expect the output of Newlabel but there is no result