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.
document.getElementsByTagName()
Returns a NodeList containing all elements with the specified tagname.
document.head
Returns the head element of the document.
document.images
Returns a collection of all the images in the document.
document.implementation
Returns the DOMImplementation object that handles this document.
document.ImportNode()
Imports a node from another document.
document.InputEncoding
Returns the encoding, character set, used for the document.
document.lastModified
Returns the date and time the document was last modified.
document.links
Returns a collection of all the links in the document.
document.normalize()
Removes empty Text nodes, and joins adjacent nodes.
document.normalizeDocument()
Removes empty Text nodes, and joins adjacent nodes.
document.open()
Opens an HTML output stream to collect output from document.write()
document.querySelector()
Returns the first element that matches a specified CSS selector(s) in the document.
document.querySelectorAll()
Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.
document.readyState
Returns the (loading) status of the document.
document.referrer
Returns the URL of the document that loaded the current document.
document.removeEventListener()
Removes an event handler from the document (that has been attached with the addEventListener() method).
document.renameNode()
Renames the specified node.
document.scripts
Returns a collection of all the scripts in the document.
document.strictErrorChecking
Sets or returns whether error-checking is enforced or not.
document.title
Sets or returns the title of the document
document.URL
Returns the full URL of the document.
document.write()
Writes HTML expressions or JavaScript code to a document.
document.writeIn()
Same as write(), but adds a newline character after each statement.
Attaches an event handler to the document.
document.addEventListener()
Returns an adopted node from another document to this document.
document.adoptNode(node)
Returns a collection of all the anchors in the document.
document.anchors
Returns a collection of all the applets in the document.
document.applets
Returns the absolute base URI of a document.
document.baseURI
Returns the body element of the document.
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 an 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 Type Declaration associated with the document.
document.doctype
Returns the Document Element of the document (the HTML element).
document.documentElement
Returns the mode used by the browser to render the document.
document.documentMode
Sets or returns the location of the document.
document.documentURI
Returns the domain name of the server that loaded the document.
document.domain
Returns the configuration used when normalizeDocument() is invoked.
document.domConfig
Returns a collection of all the embeds in the document.
document.embeds
Returns a collection of all the forms in the document.
document.forms
Returns the element that has the ID attribute with the specified value.
document.getElementById()
Returns a NodeList containing all elements with the specified class name.
document.getElementsByClassName()
Accesses all elements with a specified name.
document.getElementsByName()
Returns a NodeList containing all elements with the specified tagname.
document.getElementsByTagName()
Returns the head element of the document.
document.head
Returns a collection of all the images in the document.
document.images
Returns the DOMImplementation object that handles this document.
document.implementation
Imports a node from another document.
document.ImportNode()
Returns the encoding, character set, used for the document.
document.InputEncoding
Returns the date and time the document was last modified.
document.lastModified
Returns a collection of all the links in the document.
document.links
Removes empty Text nodes, and joins adjacent nodes.
document.normalize()
Removes empty Text nodes, and joins adjacent nodes.
document.normalizeDocument()
Opens an HTML output stream to collect output from document.write()
document.open()
Returns the first element that matches a specified CSS selector(s) in the document.
document.querySelector()
Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document.
document.querySelectorAll()
Returns the (loading) status of the document.
document.readyState
Returns the URL of the document that loaded the current document.
document.referrer
Removes an event handler from the document (that has been attached with the addEventListener() method).
document.removeEventListener()
Renames the specified node.
document.renameNode()
Returns a collection of all the scripts in the document.
document.scripts
Sets or returns whether error-checking is enforced or not.
document.strictErrorChecking
Sets or returns the title of the document
document.title
Returns the full URL of the document.
document.URL
Writes HTML expressions or JavaScript code to a document.
document.write()
Same as write(), but adds a newline character after each statement.
document.writeIn()