html get button text

Solutions on MaxInterview for html get button text by the best coders in the world

showing results for - "html get button text"
Gabriela
23 Sep 2018
1ar all = document.getElementsByTagName('*'); 
2for (var i=0, max=all.length; i < max; i++) 
3{
4var elem = all[i];
5if(elem.getAttribute("id") == 'ext-gen26'){
6    if(elem.attributes != null){
7        for (var x = 0; x < elem.attributes.length; x++) {
8            var attrib = elem.attributes[x];
9            alert(attrib.name + " = " + attrib.value);  
10        }
11    }
12}
13};
similar questions
queries leading to this page
html get button text