Nustatytų elementų metodai (Method)

Metodas ir aprašymas Grąžinama Galimybė
addEventListener( type, listener, useCapture )
Register an event handler to a specific event type on the element.
- All
appendChild( )
Įterpiamas nurodytas elementas į elemento pabaigą
Elementas Visi
blur()
Pašalinamas klaviatūros fokusavimas iš nustatyto elemento.
- HTML, XUL
click()
Simulates a click on the current element.
- HTML, XUL
cloneNode()
Klonuojamas (sukuriamas toks pat) nustatytas elementas
Node Visi
dispatchEvent( event )
Dispatch an event to this node in the DOM.
Boolean All
focus()
Gives keyboard focus to the current element.
- HTML, XUL
getAttribute()
Gaunama reikšmė iš nurodyto atributo priskiriant elementą.
Objektas Visi
hasAttribute()
Grąžinama boolean tipą nusakantį ar nurodytas elementas egizstuoja ar ne.
Boolean Visi
hasAttributes()
Trikinama ar nustatytas elementas turi atributų ar ne
Boolean Visi
hasChildNodes()
Tikrinama ar nustatytas elementas turi savyje papildomų elementų ar ne.
Boolean All
insertBefore()
Įterpiamas nurodytas elementas prieš kitą nurodytą elementą nustatytame elemente.
Node Visi
normalize()
Clean up all the text nodes under this element (merge adjacent, remove empty).
- All
removeAttribute()
Pašalinamas atributas iš nurodyto elemento.
- Visi
removeAttributeNode( name )
Remove the node representation of the named attribute from the current node.
- All
removeChild()
Pašalinamas elementas iš nustatytojo elemento.
Node Visi
removeEventListener( type, handler, useCapture )
Removes an event listener from the element.
- All
replaceChild( insertedNode, replacedNode )
Replaces one child node in the current element with another.
Node All
scrollIntoView( alignWithTop )
Scrolls the page until the element gets into the view.
- HTML
setAttribute()
Nustatomas nurodyto elemnto nauajs atributas.
- Visi
setAttributeNode( name, attrNode )
Set the node representation of the named attribute from the current node.
- All

Discussion

Enter your comment (wiki syntax is allowed):

Asmeniniai įrankiai