Code directly:
For example, to get all the attributes of a button with a "BTN" button
Copy code code as follows:
Function Showbtn ()
{{
var tmp = "";
var objbtn = document.GetelementByid ("BTN");
for (var I in objbtn)
{{
tmp+= i+":"+Objbtn [i];
}
alert (tmp);
}