doc.activeElement | Returns the currently focused element in the document |
doc.addEventListener() | Attaches an event handler to the document |
doc.adoptNode() | Adopts a node from another document |
doc.anchors | Returns a collection of all <a> elements in the document that have a name attribute |
doc.applets | Returns a collection of all <applet> elements in the document |
doc.baseURI | Returns the absolute base URI of a document |
doc.body | Sets or returns the document's body (the <body> element) |
doc.close() | Closes the output stream previously opened with document.open() |
doc.cookie | Returns all name/value pairs of cookies in the document |
doc.createAttribute() | Creates an attribute node |
doc.createComment() | Creates a Comment node with the specified text |
doc.createDocumentFragment() | Creates an empty DocumentFragment node |
doc.createElement() | Creates an Element node |
doc.createTextNode() | Creates a Text node |
doc.doctype | Returns the Document Type Declaration associated with the document |
doc.documentElement | Returns the Document Element of the document (the <html> element) |
doc.documentMode | Returns the mode used by the browser to render the document |
doc.documentURI | Sets or returns the location of the document |
doc.domain | Returns the domain name of the server that loaded the document |
doc.domConfig | Obsolete. Returns the DOM configuration of the document |
doc.embeds | Returns a collection of all <embed> elements the document |
doc.forms | Returns a collection of all <form> elements in the document |
doc.getElementById() | Returns the element that has the ID attribute with the specified value |
doc.getElementsByClassName() | Returns a NodeList containing all elements with the specified class name |
doc.getElementsByName() | Returns a NodeList containing all elements with a specified name |
doc.getElementsByTagName() | Returns a NodeList containing all elements with the specified tag name |
doc.hasFocus() | Returns a Boolean value indicating whether the document has focus |
doc.head | Returns the <head> element of the document |
doc.images | Returns a collection of all <img> elements in the document |
doc.implementation | Returns the DOMImplementation object that handles this document |
doc.importNode() | Imports a node from another document |
doc.inputEncoding | Returns the encoding, character set, used for the document |
doc.lastModified | Returns the date and time the document was last modified |
doc.links | Returns a collection of all <a> and <area> elements in the document that have a href attribute |
doc.normalize() | Removes empty Text nodes, and joins adjacent nodes |
doc.normalizeDocument() | Removes empty Text nodes, and joins adjacent nodes |
doc.open() | Opens an HTML output stream to collect output from document.write() |
doc.querySelector() | Returns the first element that matches a specified CSS selector(s) in the document |
doc.querySelectorAll() | Returns a static NodeList containing all elements that matches a specified CSS selector(s) in the document |
doc.readyState | Returns the (loading) status of the document |
doc.referrer | Returns the URL of the document that loaded the current document |
doc.removeEventListener() | Removes an event handler from the document (that has been attached with the addEventListener() method) |
doc.renameNode() | Renames the specified node |
doc.scripts | Returns a collection of <script> elements in the document |
doc.strictErrorChecking | Sets or returns whether error-checking is enforced or not |
doc.title | Sets or returns the title of the document |
doc.URL | Returns the full URL of the HTML document |
doc.write() | Writes HTML expressions or JavaScript code to a document |
doc.writeln() | Same as write(), but adds a newline character after each statement |
Note: Documents inhert all Node properties, but... |
doc.attributes | Documents don't have attributes |
doc.hasAttributes() | Documents don't have attributes |
doc.nextSibling | Documents don't have siblings |
doc.nodeName | This is always #document |
doc.nodeType | This is always 9 (DOCUMENT_NODE) |
doc.nodeValue | Documents don't have an node value |
doc.ownerDocument | Documents don't have an owner document |
doc.ownerElement | Documents don't have an owner element |
doc.parentNode | Documents don't have a parent node |
doc.previousSibling | Documents don't have siblings |
doc.textContent | Documents don't have a text content |
| |