A, DOM operations classification
Usually divided into three types of operation when using JavaScript DOM: DOM Core, HTMl - DOM and CSS-DOM
Second, the access node
Node Properties
Third, the node information
Fourth, the operation of node attributes
grammar:
getArrtibute ( "property name"): used to obtain the value of the property
the setAttribute ( "attribute name", "attribute value"): used to set the value of the property
Fifth, remove and replace node
Method to remove and replace node
Sixth, the operation mode of the node
1, style attributes
grammar:
HTML elements .style style attribute = "value.";
Common events style object
2, className attribute
grammar:
HTML elements .className "Style Name"
Seven, to obtain an element's style
Syntax 1:
HTML elements .style style properties.;
Syntax 2:
HTML elements .currentStyle style dance.;
Syntax 3:
docment, dafaul.getElementById (element, null) properties.;