Document methods & properties Flashcards
returns the currently focused element in the document
document.activeElement
attaches an event handler to the document
document.addEventListener( )
adopts a node from another document
document.adoptNode( )
returns a collection of all <a> elements in the document that have a name attribute</a>
document.anchors
returns a collection of all element in the document
document.applets
returns the absolute base URI of a document
document.baseURI
sets or returns the documents body (the element)
document.body
closes the output stream previously opened with document.open( )
document.close( )
returns all name/value pairs of cookies in the document
document.cookie
creates ana attribute node
document.createAttribute( )
creates a comment node with the specified text
document.createComment( )
creates an empty DocumentFragment node
document.createDocumentFragment( )
creates an Element node
document.createElement( )
creates a text node
document.createTextNode( )
returns the Document Element of the document
document.doctype
returns the mode used by the browser to render the document
document.documentElement
returns the mode used by the browser to render the document
document.documentMode
…
document.documentURI
…
document.domain