to access the attributes (such as "class", "style", "id", ....) of a node, you have to use the
attributes property of the node:
JavaScript Code:
var mynode = document.getElementsByTagName ("*");
for (var i in mynode.attributes)
alert (i + "=" + mynode.attributes[i]);