package js.html
extends Node › EventTarget
Available on jsThe
Element
interface represents an object of aDocument
. This interface describes methods and properties common to all kinds of elements. Specific behaviors are described in interfaces which inherit fromElement
but add additional functionality.Documentation Element by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
accessKey:String
read only accessKeyLabel:String
read only attributes:NamedNodeMap
read only childElementCount:Int
read only children:HTMLCollection
read only classList:DOMTokenList
className:String
read only clientHeight:Int
read only clientLeft:Int
read only clientTop:Int
read only clientWidth:Int
contentEditable:String
read only contextMenu:MenuElement
read only dataset:DOMStringMap
dir:String
draggable:Bool
read only firstElementChild:Element
hidden:Bool
id:String
innerHTML:String
innerText:String
read only isContentEditable:Bool
itemId:String
read only itemProp:DOMTokenList
read only itemRef:DOMTokenList
itemScope:Bool
read only itemType:DOMTokenList
itemValue:Dynamic
lang:String
read only lastElementChild:Element
read only nextElementSibling:Element
read only offsetHeight:Int
read only offsetLeft:Int
read only offsetParent:Element
read only offsetTop:Int
read only offsetWidth:Int
onabort:Function
onblur:Function
oncanplay:Function
oncanplaythrough:Function
onchange:Function
onclick:Function
oncontextmenu:Function
oncopy:Function
oncut:Function
ondblclick:Function
ondrag:Function
ondragend:Function
ondragenter:Function
ondragleave:Function
ondragover:Function
ondragstart:Function
ondrop:Function
ondurationchange:Function
onemptied:Function
onended:Function
onerror:Function
onfocus:Function
onfullscreenchange:Function
onfullscreenerror:Function
ongotpointercapture:Function
oninput:Function
oninvalid:Function
onkeydown:Function
onkeypress:Function
onkeyup:Function
onload:Function
onloadeddata:Function
onloadedmetadata:Function
onloadstart:Function
onlostpointercapture:Function
onmousedown:Function
onmouseenter:Function
onmouseleave:Function
onmousemove:Function
onmouseout:Function
onmouseover:Function
onmouseup:Function
onpaste:Function
onpause:Function
onplay:Function
onplaying:Function
onpointercancel:Function
onpointerdown:Function
onpointerenter:Function
onpointerleave:Function
onpointerlockchange:Function
onpointerlockerror:Function
onpointermove:Function
onpointerout:Function
onpointerover:Function
onpointerup:Function
onprogress:Function
onratechange:Function
onreset:Function
onresize:Function
onscroll:Function
onseeked:Function
onseeking:Function
onselect:Function
onshow:Function
onstalled:Function
onsubmit:Function
onsuspend:Function
ontimeupdate:Function
ontouchcancel:Function
ontouchend:Function
ontouchmove:Function
ontouchstart:Function
onvolumechange:Function
onwaiting:Function
onwheel:Function
outerHTML:String
read only previousElementSibling:Element
read only properties:HTMLPropertiesCollection
read only scrollHeight:Int
scrollLeft:Int
read only scrollLeftMax:Int
scrollTop:Int
read only scrollTopMax:Int
read only scrollWidth:Int
read only shadowRoot:ShadowRoot
spellcheck:Bool
read only style:CSSStyleDeclaration
tabIndex:Int
read only tagName:String
title:String
animate (frames:Dynamic, ?options:EitherType<Float, Dynamic>):Animation
Throws:
null |
DOMError |
---|
blur ():Void
Throws:
null |
DOMError |
---|
click ():Void
closest (selector:String):Element
Throws:
null |
DOMError |
---|
convertPointFromNode (point:DOMPointInit, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMPoint
Throws:
null |
DOMError |
---|
convertQuadFromNode (quad:DOMQuad, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMQuad
Throws:
null |
DOMError |
---|
convertRectFromNode (rect:DOMRectReadOnly, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMQuad
Throws:
null |
DOMError |
---|
createShadowRoot ():ShadowRoot
Throws:
null |
DOMError |
---|
focus ():Void
Throws:
null |
DOMError |
---|
getAnimations ():Array<Animation>
Returns an array of Animation objects currently active on the element.
getAttribute (name:String):String
getAttributeNS (namespace_:String, localName:String):String
getAttributeNames ():Array<String>
getAttributeNode (name:String):Attr
getAttributeNodeNS (namespaceURI:String, localName:String):Attr
getBoundingClientRect ():DOMRect
getClientRects ():DOMRectList
getDestinationInsertionPoints ():NodeList
…
getElementsByClassName (classNames:String):HTMLCollection
getElementsByTagName (localName:String):HTMLCollection
getElementsByTagNameNS (namespace_:String, localName:String):HTMLCollection
Throws:
null |
DOMError |
---|
hasAttribute (name:String):Bool
hasAttributeNS (namespace_:String, localName:String):Bool
hasAttributes ():Bool
insertAdjacentHTML (position:String, text:String):Void
Throws:
null |
DOMError |
---|
matches (selector:String):Bool
Throws:
null |
DOMError |
---|
querySelector (selectors:String):Element
Throws:
null |
DOMError |
---|
querySelectorAll (selectors:String):NodeList
Throws:
null |
DOMError |
---|
releaseCapture ():Void
releasePointerCapture (pointerId:Int):Void
Throws:
null |
DOMError |
---|
remove ():Void
removeAttribute (name:String):Void
Throws:
null |
DOMError |
---|
removeAttributeNS (namespace_:String, localName:String):Void
Throws:
null |
DOMError |
---|
removeAttributeNode (oldAttr:Attr):Attr
Throws:
null |
DOMError |
---|
requestFullscreen (?options:Dynamic):Void
Throws:
null |
DOMError |
---|
requestPointerLock ():Void
scroll (?options:ScrollToOptions):Void
scroll (x:Float, y:Float):Void
scrollBy (?options:ScrollToOptions):Void
scrollBy (x:Float, y:Float):Void
scrollIntoView (?options:ScrollIntoViewOptions):Void
scrollIntoView (top:Bool):Void
scrollTo (?options:ScrollToOptions):Void
scrollTo (x:Float, y:Float):Void
setAttribute (name:String, value:String):Void
Throws:
null |
DOMError |
---|
setAttributeNS (namespace_:String, name:String, value:String):Void
Throws:
null |
DOMError |
---|
setAttributeNode (newAttr:Attr):Attr
Throws:
null |
DOMError |
---|
setAttributeNodeNS (newAttr:Attr):Attr
Throws:
null |
DOMError |
---|
setCapture (retargetToElement:Bool = false):Void
setPointerCapture (pointerId:Int):Void
Throws:
null |
DOMError |
---|
webkitMatchesSelector (selector:String):Bool
Throws:
null |
DOMError |
---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMElement.html