W3cubDocs

/Haxe JavaScript

HTMLDocument

package js.html

extends DocumentNodeEventTarget

Available on js

HTMLDocument is an abstract interface of the DOM which provides access to special properties and methods not present by default on a regular (XML) document.

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

See:

Variables

alinkColor:String

read only all:HTMLAllCollection

read only anchors:HTMLCollection

read only applets:HTMLCollection

bgColor:String

body:BodyElement

designMode:String

domain:String

read only embeds:HTMLCollection

fgColor:String

read only forms:HTMLCollection

read only images:HTMLCollection

linkColor:String

read only plugins:HTMLCollection

read only scripts:HTMLCollection

vlinkColor:String

Methods

captureEvents ():Void

clear ():Void

close ():Void

Throws:

null DOMError

inline createAnchorElement ():AnchorElement

Shorthand for creating an HTML <a> element.

inline createAppletElement ():AppletElement

Shorthand for creating an HTML <applet> element.

inline createAreaElement ():AreaElement

Shorthand for creating an HTML <area> element.

inline createAudioElement ():AudioElement

Shorthand for creating an HTML <audio> element.

inline createBRElement ():BRElement

Shorthand for creating an HTML <br> element.

inline createBaseElement ():BaseElement

Shorthand for creating an HTML <base> element.

inline createBodyElement ():BodyElement

Shorthand for creating an HTML <body> element.

inline createButtonElement ():ButtonElement

Shorthand for creating an HTML <button> element.

inline createCanvasElement ():CanvasElement

Shorthand for creating an HTML <canvas> element.

inline createContentElement ():ContentElement

Shorthand for creating an HTML <content> element.

inline createDListElement ():DListElement

Shorthand for creating an HTML <dl> element.

inline createDataListElement ():DataListElement

Shorthand for creating an HTML <datalist> element.

inline createDirectoryElement ():DirectoryElement

Shorthand for creating an HTML <dir> element.

inline createDivElement ():DivElement

Shorthand for creating an HTML <div> element.

inline createEmbedElement ():EmbedElement

Shorthand for creating an HTML <embed> element.

inline createFieldSetElement ():FieldSetElement

Shorthand for creating an HTML <fieldset> element.

inline createFontElement ():FontElement

Shorthand for creating an HTML <font> element.

inline createFormElement ():FormElement

Shorthand for creating an HTML <form> element.

inline createFrameElement ():FrameElement

Shorthand for creating an HTML <frame> element.

inline createFrameSetElement ():FrameSetElement

Shorthand for creating an HTML <frameset> element.

inline createHRElement ():HRElement

Shorthand for creating an HTML <hr> element.

inline createHeadElement ():HeadElement

Shorthand for creating an HTML <head> element.

inline createHtmlElement ():HtmlElement

Shorthand for creating an HTML <html> element.

inline createIFrameElement ():IFrameElement

Shorthand for creating an HTML <iframe> element.

inline createImageElement ():ImageElement

Shorthand for creating an HTML <img> element.

inline createInputElement ():InputElement

Shorthand for creating an HTML <input> element.

inline createLIElement ():LIElement

Shorthand for creating an HTML <li> element.

inline createLabelElement ():LabelElement

Shorthand for creating an HTML <label> element.

inline createLegendElement ():LegendElement

Shorthand for creating an HTML <legend> element.

inline createLinkElement ():LinkElement

Shorthand for creating an HTML <link> element.

inline createMapElement ():MapElement

Shorthand for creating an HTML <map> element.

inline createMediaElement ():MediaElement

Shorthand for creating an HTML <media> element.

inline createMenuElement ():MenuElement

Shorthand for creating an HTML <menu> element.

inline createMetaElement ():MetaElement

Shorthand for creating an HTML <meta> element.

inline createMeterElement ():MeterElement

Shorthand for creating an HTML <meter> element.

inline createModElement ():ModElement

Shorthand for creating an HTML <mod> element.

inline createOListElement ():OListElement

Shorthand for creating an HTML <ol> element.

inline createObjectElement ():ObjectElement

Shorthand for creating an HTML <object> element.

inline createOptGroupElement ():OptGroupElement

Shorthand for creating an HTML <optgroup> element.

inline createOptionElement ():OptionElement

Shorthand for creating an HTML <option> element.

inline createOutputElement ():OutputElement

Shorthand for creating an HTML <output> element.

inline createParagraphElement ():ParagraphElement

Shorthand for creating an HTML <p> element.

inline createParamElement ():ParamElement

Shorthand for creating an HTML <param> element.

inline createPictureElement ():PictureElement

Shorthand for creating an HTML <picture> element.

inline createPreElement ():PreElement

Shorthand for creating an HTML <pre> element.

inline createProgressElement ():ProgressElement

Shorthand for creating an HTML <progress> element.

inline createQuoteElement ():QuoteElement

Shorthand for creating an HTML <quote> element.

inline createScriptElement ():ScriptElement

Shorthand for creating an HTML <script> element.

inline createSelectElement ():SelectElement

Shorthand for creating an HTML <select> element.

inline createShadowElement ():ShadowElement

Shorthand for creating an HTML <shadow> element.

inline createSourceElement ():SourceElement

Shorthand for creating an HTML <source> element.

inline createSpanElement ():SpanElement

Shorthand for creating an HTML <span> element.

inline createStyleElement ():StyleElement

Shorthand for creating an HTML <style> element.

inline createTableCaptionElement ():TableCaptionElement

Shorthand for creating an HTML <caption> element.

inline createTableCellElement ():TableCellElement

Shorthand for creating an HTML <td> element.

inline createTableColElement ():TableColElement

Shorthand for creating an HTML <col> element.

inline createTableElement ():TableElement

Shorthand for creating an HTML <table> element.

inline createTableRowElement ():TableRowElement

Shorthand for creating an HTML <tr> element.

inline createTableSectionElement ():TableSectionElement

Shorthand for creating an HTML <thead> element.

inline createTextAreaElement ():TextAreaElement

Shorthand for creating an HTML <textarea> element.

inline createTitleElement ():TitleElement

Shorthand for creating an HTML <title> element.

inline createTrackElement ():TrackElement

Shorthand for creating an HTML <track> element.

inline createUListElement ():UListElement

Shorthand for creating an HTML <ul> element.

inline createVideoElement ():VideoElement

Shorthand for creating an HTML <video> element.

execCommand (commandId:String, showUI:Bool = false, value:String = ""):Bool

Throws:

null DOMError

getElementsByName (elementName:String):NodeList

getItems (typeNames:String = ""):NodeList

getSelection ():Selection

Throws:

null DOMError

open (url:String, name:String, features:String, replace:Bool = false):Window

open (type:String = "text/html", replace:String = ""):HTMLDocument

Throws:

null DOMError

queryCommandEnabled (commandId:String):Bool

Throws:

null DOMError

queryCommandIndeterm (commandId:String):Bool

Throws:

null DOMError

queryCommandState (commandId:String):Bool

Throws:

null DOMError

queryCommandSupported (commandId:String):Bool

queryCommandValue (commandId:String):String

Throws:

null DOMError

releaseEvents ():Void

write (text:Rest<String>):Void

Throws:

null DOMError

writeln (text:Rest<String>):Void

Throws:

null DOMError

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