Document Flashcards
document.addEventListener()
Attaches an event handler to the document.
document.adoptNode(node)
Returns an adopted node from another document to this document.
document.anchors
Returns a collection of all the anchors in the document.
document.applets
Returns a collection of all the applets in the document.
document.baseURI
Returns the absolute base URI of a document.
document.body
Returns the body element of the document.
document.close()
Closes the output stream previously opened with document.open()
document.cookie
Returns all name/value pairs of cookies in the document.
document.createAttribute()
Creates an attribute node.
document.createComment()
Creates a Comment node with the specified text.
document.createDocumentFragment()
Creates an empty DocumentFragment node.
document.createElement()
Creates an Element node.
document.createTextNode()
Creates a Text node.
document.doctype
Returns the Document Type Declaration associated with the document.
document.documentElement
Returns the Document Element of the document (the HTML element).
document.documentMode
Returns the mode used by the browser to render the document.
document.documentURI
Sets or returns the location of the document.
document.domain
Returns the domain name of the server that loaded the document.
document.domConfig
Returns the configuration used when normalizeDocument() is invoked.
document.embeds
Returns a collection of all the embeds in the document.
document.forms
Returns a collection of all the forms in the document.
document.getElementById()
Returns the element that has the ID attribute with the specified value.
document.getElementsByClassName()
Returns a NodeList containing all elements with the specified class name.
document.getElementsByName()
Accesses all elements with a specified name.