JS Operation Properties:
Aaa.getattribute ("attribute name"); -Remove the attribute value from the property name of the DOM object of the AAA
Aaa.removeattribute ("attribute name"); -Remove this property
Aaa.setattribute ("attribute name", "value"); --Add/Modify this property
Window.settimeout ("B ()", 3000); --Wait 3 seconds, execute B This method, execute it again
Window.setinterval (' aaa () ', 1000); --Perform AAA This method every 1 seconds, loop execution
Clearinterval (time); --Clear Timer
Window.clearinterval (deferred ID)--clear settimeout
Action style:
Variable name. style. Style name = "";
Related element operations:
var a = document.getElementById ("id"); Find A;
var B = a.nextsibling; Find the next sibling element of a, containing spaces;
var B = a.previoussibling; Find the previous sibling element of a, including spaces;
var b = A.parentnobe; Find the parent element of A;
var b = a.childnobes; Find the next level child element of a, find an array;
var B = A.firstchild The first child element, lastchild the last element, Childnodes[n] Find the number of elements;
JS Operation Properties, Styles