1. Events
2. Operation
1. Content
1 innerText text 2 outerText 3 innerHTML HTML content 4 innerHTML 5 value
2. Properties
1 attributes // Get all label attributes 2 setAttribute(key,value) // Set label attributes 3 getAttribute(key) // Get specified label attributes
/*
var atr = document.createAttribute("class");
atr.nodeValue=" democlass";
document.getElementById('n1').setAttributeNode(atr);
*/
DOM link
http://www.cnblogs.com/wupeiqi/articles/5643298.html