W3cubDocs

/Haxe JavaScript

Attr

package js.html

extends NodeEventTarget

Available on js

This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.

Documentation Attr by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only name:String

read only ownerElement:Element

read only specified:Bool

value:String

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/Attr.html