Window > Metodi

addEventListener
addEventListener allows the registration of event listeners on the event target.
appendChild
The appendChild method inserts the specified node into the list of nodes on the current document.
blur
The blur method removes keyboard focus from the current element.
click
The click method excecutes a click on the current element.
cloneNode
The cloneNode method returns a duplicate of the current node.
dispatchEvent
The dispatchEvent method allows the dispatch of events into the implementation’s event model.
focus
focus sets focus on the current element.
getAttribute
getAttribute returns the value of the named attribute on the current node.
getAttributeNS
getAttributeNS returns the value of the attribute with the given name and namespace.
getAttributeNode
Returns the attribute of the current element as a separate node.
getElementsByTagName
Returns the elements of a particular name that are children of the current element.
hasAttribute
hasAttribute returns a boolean value indicating whether the current element has the specified attribute or not.
hasAttributeNS
hasAttribute is a boolean value indicating whether the current element has an attribute with the specified name and namespace.
hasChildNodes
hasChildNodes is a boolean value indicating whether the current element has children or not.
insertBefore
The insertBefore method allows you to insert a node before the current element in the DOM.
item
The item method retrieves a node from the tree by index.
normalize
The normalize method puts the current node and all of its subtree into a “normalized” form (see below).
removeAttribute
The removeAttribute() method removes an attribute from the current element.
removeAttributeNode
removeAttributeNode removes the specified attribute from the current element.
removeChild
The removeChild() method removes a child node from the current element.
removeEventListener
removeEventListener() allows the removal of event listeners from the event target.
replaceChild
The replaceChild() method replaces one child node on the current element with another.
setAttribute
setAttribute adds a new attribute or changes the value of an existing attribute on the current element.
setAttributeNS
setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name.
setAttributeNode
setAttributeNode adds a new attribute node to the current element.
supports
The supports method tests if this DOM implementation supports a particular feature.

Lascia un commento