HTMLDocument Interface

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.


If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)


PDF mobile

HTMLDocument Interface

Use:
Document
DOM PropertiesSupported
get onlyElement
document.activeElement
get or setHTMLElement
document.body
document.body = value
get onlyDOMString
document.characterSet
get or setDOMString
document.charset
document.charset = value
get onlyHTMLCollection
document.commands
get onlyDOMString
document.compatMode
get onlyDOMElementMap
document.cssElementMap
get onlyDOMString
document.defaultCharset
get onlyWindowProxy
document.defaultView
get or setDOMString
document.designMode
document.designMode = value
get or setDOMString
document.dir
document.dir = value
get or setDOMString
document.domain
document.domain = value
get onlyHTMLCollection
document.embeds
get onlyHTMLCollection
document.forms
get onlyHTMLCollection
document.images
get or setDOMString
document.innerHTML
document.innerHTML = value
get onlyDOMString
document.lastModified
get onlyLocation
document.location
Deprecated in JavaScript 1.1. Use window.location instead.
get onlyHTMLCollection
document.plugins
get onlyDOMString
document.readyState
get onlyDOMString
document.referrer
get onlyHTMLCollection
document.scripts
get or setDOMString
document.title
document.title = value
get onlyDOMString
document.URL
DOM Interface MethodsSupported
void
document.close()
boolean
document.execCommand(DOMString commandId)
boolean
document.execCommand(DOMString commandId, boolean showUI)
boolean
document.execCommand(DOMString commandId, boolean showUI, DOMString value)
NodeList
document.getElementsByClassName(DOMString className)
NodeList
document.getElementsByName(DOMString elementName)
NodeList
document.getItems()
Returns:
a NodeList with all of the elements in the document that create top-level microdata items (items that are not a properties of other items)
NodeList
document.getItems(DOMString typeNames)
Parameters:
typeNames - a list of microdata type names separated by spaces
Returns:
a NodeList with all of the elements in the document that create top-level microdata items (items that are not a properties of other items) and match one of the types in the typeNames parameter
boolean
document.hasFocus()
HTMLDocument
document.open(DOMString type, DOMString replace)
WindowProxy
document.open(DOMString url, DOMString name, DOMString features, boolean replace)
boolean
document.queryCommandEnabled(DOMString commandId)
boolean
document.queryCommandIndeterm(DOMString commandId)
boolean
document.queryCommandState(DOMString commandId)
boolean
document.queryCommandSupported(DOMString commandId)
DOMString
document.queryCommandValue(DOMString commandId)
void
document.write(DOMString text)
void
document.writeln(DOMString text)
DOM Events
Event TypePropertySupported
abortFunctiononabort
blurFunctiononblur
canplayFunctiononcanplay
canplaythroughFunctiononcanplaythrough
changeFunctiononchange
clickFunctiononclick
contextmenuFunctiononcontextmenu
cuechangeFunctiononcuechange
dblclickFunctionondblclick
dragFunctionondrag
dragendFunctionondragend
dragenterFunctionondragenter
dragleaveFunctionondragleave
dragoverFunctionondragover
dragstartFunctionondragstart
dropFunctionondrop
durationchangeFunctionondurationchange
emptiedFunctiononemptied
endedFunctiononended
errorFunctiononerror
focusFunctiononfocus
formchangeFunctiononformchange
forminputFunctiononforminput
inputFunctiononinput
invalidFunctiononinvalid
keydownFunctiononkeydown
keypressFunctiononkeypress
keyupFunctiononkeyup
loadFunctiononload
loadeddataFunctiononloadeddata
loadedmetadataFunctiononloadedmetadata
loadstartFunctiononloadstart
mousedownFunctiononmousedown
mousemoveFunctiononmousemove
mouseoutFunctiononmouseout
mouseoverFunctiononmouseover
mouseupFunctiononmouseup
mousewheelFunctiononmousewheel
pauseFunctiononpause
playFunctiononplay
playingFunctiononplaying
progressFunctiononprogress
ratechangeFunctiononratechange
readystatechangeFunctiononreadystatechange
resetFunctiononreset
scrollFunctiononscroll
seekedFunctiononseeked
seekingFunctiononseeking
selectFunctiononselect
showFunctiononshow
stalledFunctiononstalled
submitFunctiononsubmit
suspendFunctiononsuspend
timeupdateFunctionontimeupdate
volumechangeFunctiononvolumechange
waitingFunctiononwaiting

Valid HTML 5