2.re:javascript之dom操作
childNodes[i].nodeType == 3) { alert(node.childNodes[i].nodeValue); ...,因此会有些许不同,如class,lable中的for在javascript中变为htmlFor,className。...
Working with getElementById
document.getElementById("id").childNodes[0].nodeValue className - gets or...The first link calls the function to display an Alert with the DIV ...
HTML DOM getElementById() 方法
除了 getElementById() 之外,还有 getElementsByName() 和 getElementsByTagName...getValue()">This is a header Click on the header to alert its value ...