package js.html
extends Node › EventTarget
Available on jsThe
Elementinterface 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 fromElementbut add additional functionality.Documentation Element by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
accessKey:Stringread only accessKeyLabel:Stringread only attributes:NamedNodeMapread only childElementCount:Intread only children:HTMLCollectionread only classList:DOMTokenListclassName:Stringread only clientHeight:Intread only clientLeft:Intread only clientTop:Intread only clientWidth:IntcontentEditable:Stringread only contextMenu:MenuElementread only dataset:DOMStringMapdir:Stringdraggable:Boolread only firstElementChild:Elementhidden:Boolid:StringinnerHTML:StringinnerText:Stringread only isContentEditable:BoolitemId:Stringread only itemProp:DOMTokenListread only itemRef:DOMTokenListitemScope:Boolread only itemType:DOMTokenListitemValue:Dynamiclang:Stringread only lastElementChild:Elementread only nextElementSibling:Elementread only offsetHeight:Intread only offsetLeft:Intread only offsetParent:Elementread only offsetTop:Intread only offsetWidth:Intonabort:Functiononblur:Functiononcanplay:Functiononcanplaythrough:Functiononchange:Functiononclick:Functiononcontextmenu:Functiononcopy:Functiononcut:Functionondblclick:Functionondrag:Functionondragend:Functionondragenter:Functionondragleave:Functionondragover:Functionondragstart:Functionondrop:Functionondurationchange:Functiononemptied:Functiononended:Functiononerror:Functiononfocus:Functiononfullscreenchange:Functiononfullscreenerror:Functionongotpointercapture:Functiononinput:Functiononinvalid:Functiononkeydown:Functiononkeypress:Functiononkeyup:Functiononload:Functiononloadeddata:Functiononloadedmetadata:Functiononloadstart:Functiononlostpointercapture:Functiononmousedown:Functiononmouseenter:Functiononmouseleave:Functiononmousemove:Functiononmouseout:Functiononmouseover:Functiononmouseup:Functiononpaste:Functiononpause:Functiononplay:Functiononplaying:Functiononpointercancel:Functiononpointerdown:Functiononpointerenter:Functiononpointerleave:Functiononpointerlockchange:Functiononpointerlockerror:Functiononpointermove:Functiononpointerout:Functiononpointerover:Functiononpointerup:Functiononprogress:Functiononratechange:Functiononreset:Functiononresize:Functiononscroll:Functiononseeked:Functiononseeking:Functiononselect:Functiononshow:Functiononstalled:Functiononsubmit:Functiononsuspend:Functionontimeupdate:Functionontouchcancel:Functionontouchend:Functionontouchmove:Functionontouchstart:Functiononvolumechange:Functiononwaiting:Functiononwheel:FunctionouterHTML:Stringread only previousElementSibling:Elementread only properties:HTMLPropertiesCollectionread only scrollHeight:IntscrollLeft:Intread only scrollLeftMax:IntscrollTop:Intread only scrollTopMax:Intread only scrollWidth:Intread only shadowRoot:ShadowRootspellcheck:Boolread only style:CSSStyleDeclarationtabIndex:Intread only tagName:Stringtitle:Stringanimate (frames:Dynamic, ?options:EitherType<Float, Dynamic>):AnimationThrows:
null |
DOMError |
|---|
blur ():VoidThrows:
null |
DOMError |
|---|
click ():Voidclosest (selector:String):ElementThrows:
null |
DOMError |
|---|
convertPointFromNode (point:DOMPointInit, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMPointThrows:
null |
DOMError |
|---|
convertQuadFromNode (quad:DOMQuad, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMQuadThrows:
null |
DOMError |
|---|
convertRectFromNode (rect:DOMRectReadOnly, from:EitherType<Text, EitherType<Element, HTMLDocument>>, ?options:ConvertCoordinateOptions):DOMQuadThrows:
null |
DOMError |
|---|
createShadowRoot ():ShadowRootThrows:
null |
DOMError |
|---|
focus ():VoidThrows:
null |
DOMError |
|---|
getAnimations ():Array<Animation>Returns an array of Animation objects currently active on the element.
getAttribute (name:String):StringgetAttributeNS (namespace_:String, localName:String):StringgetAttributeNames ():Array<String>getAttributeNode (name:String):AttrgetAttributeNodeNS (namespaceURI:String, localName:String):AttrgetBoundingClientRect ():DOMRectgetClientRects ():DOMRectListgetDestinationInsertionPoints ():NodeList…
getElementsByClassName (classNames:String):HTMLCollectiongetElementsByTagName (localName:String):HTMLCollectiongetElementsByTagNameNS (namespace_:String, localName:String):HTMLCollectionThrows:
null |
DOMError |
|---|
hasAttribute (name:String):BoolhasAttributeNS (namespace_:String, localName:String):BoolhasAttributes ():BoolinsertAdjacentHTML (position:String, text:String):VoidThrows:
null |
DOMError |
|---|
matches (selector:String):BoolThrows:
null |
DOMError |
|---|
querySelector (selectors:String):ElementThrows:
null |
DOMError |
|---|
querySelectorAll (selectors:String):NodeListThrows:
null |
DOMError |
|---|
releaseCapture ():VoidreleasePointerCapture (pointerId:Int):VoidThrows:
null |
DOMError |
|---|
remove ():VoidremoveAttribute (name:String):VoidThrows:
null |
DOMError |
|---|
removeAttributeNS (namespace_:String, localName:String):VoidThrows:
null |
DOMError |
|---|
removeAttributeNode (oldAttr:Attr):AttrThrows:
null |
DOMError |
|---|
requestFullscreen (?options:Dynamic):VoidThrows:
null |
DOMError |
|---|
requestPointerLock ():Voidscroll (?options:ScrollToOptions):Voidscroll (x:Float, y:Float):VoidscrollBy (?options:ScrollToOptions):VoidscrollBy (x:Float, y:Float):VoidscrollIntoView (?options:ScrollIntoViewOptions):VoidscrollIntoView (top:Bool):VoidscrollTo (?options:ScrollToOptions):VoidscrollTo (x:Float, y:Float):VoidsetAttribute (name:String, value:String):VoidThrows:
null |
DOMError |
|---|
setAttributeNS (namespace_:String, name:String, value:String):VoidThrows:
null |
DOMError |
|---|
setAttributeNode (newAttr:Attr):AttrThrows:
null |
DOMError |
|---|
setAttributeNodeNS (newAttr:Attr):AttrThrows:
null |
DOMError |
|---|
setCapture (retargetToElement:Bool = false):VoidsetPointerCapture (pointerId:Int):VoidThrows:
null |
DOMError |
|---|
webkitMatchesSelector (selector:String):BoolThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMElement.html