Document

NameDescriptionReturns
activeElementCurrently focused element.HTMLElement
bodybody element.HTMLBodyElement
characterSetdocument character set encoding. (read-only property).string
charsetGets or sets the document character set encoding.string
childNodesReturns the set of child elements.HTMLElement[]
compatModeGets compatibility mode for the document.string
cookieGets or sets the cookies.string
defaultCharsetGets the default character encoding.string
defaultViewReturns the Window object.Window
dirGets or sets the text direction.string
domainGets or sets the domain.string
embeds/pluginsReturns objects representing all the embed elements.HTMLCollection
firstChildthe first child element of an element.HTMLElement
formsall the form elements in the document.HTMLCollection
getElementById(id)get the element by id.HTMLElement
get the elements by class.HTMLElement[]
getElementsByName(name)get the elements by name.HTMLElement[]
getElementsByTagName(tag)>get the elements by type.HTMLElement[]
hasChildNodes()Returns true if the current element has child elements.boolean
headget the head element.HTMLHeadElement
imagesget all the img elements.HTMLCollection
implementationProvides information about the available DOM features.DOMImplementation
lastChildget the last child element.HTMLElement
lastModifiedget the last modified time of the document.string
linksget all the a and area elements that have href attributes.HTMLCollection
locationget the URL of the current document.Location
nextSiblingget the sibling element defined after the current element.HTMLElement
parentNodeget the parent element.HTMLElement
previousSiblingget the sibling element defined before the current element.HTMLElement
querySelector(selector)get the first element that matches the specified CSS selector.HTMLElement
querySelectorAll(selector) get all of the elements that match the specified CSS selector.HTMLElement[]
readyStateget the state of the current document.string
referrerReturns the URL of the document that linked to the current document (this is the value of the corresponding HTTP header).string
scriptsReturns objects representing all the script elements.HTMLCollection
styleSheetsaccess the CSS stylesheets available in your documentCSSStyleSheet
titleGets or sets the document title.string
URLthe URL of the documentstring
writeappend string of tags to the end of the documentvoid
writelnappend string of tags to the end of the document and add new linevoid

The Document Object Events

NameDescription
readystatechangeTriggered when the value of the readyState property changes.
Home 
  JavaScript Book 
    JavaScript Reference  

JavaScript Reference:
  1. Array class
  2. Date class
  3. Math class
  4. Number class
  5. String class
  6. Document
  7. History
  8. The HTMLElement Members
  9. Window
  10. Screen
  11. Navigator
  12. Location
  13. html tag and its cooresponding JavaScript class