HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
location
The URL of the document
media
The media for which the document is intended
nextSibling
A reference to next sibling of the node
nodeName
A string containing the name of the node, the name of the tag to which the object
corresponds
nodeValue
A string containing value within the node
ownerDocument
A reference to the document in which the element is contained
parentNode
A reference to the parent of the object
parentWindow
A reference to the window that contains the document
plugins
An array of embed elements in the document
previousSibling
A reference to the previous sibling of the node
protocol
A string containing the protocol used to retrieve the document—its full name
readyState
The loading status of the document
referrer
The URL of the document containing the link that the user accessed to get to the
current document
scripts
An array of all script elements in the document
security
A string that contains information about the document's certificate
styleSheets
The collection of style sheets in the document
title
The title of the document
URL
The URL of the document
vlinkColor
The color of followed hypertext links
XMLDocument
A reference to the top-level node of the XML DOM exposed by the document
XSLDocument
A reference to the top-level node of the XSL DOM exposed by the document
Methods
addEventListener ( event,
handler, direction )
Instructs the object to execute the function handler whenever an event of the type
stated in event occurs; direction is a Boolean telling which phase to fire; use true for
capture and false for bubbling
appendChild( newChild )
Appends newChild to the end of the node's childNodes[ ] list
attachEvent( handler, function )
Attaches function as a handler specified by handler
clear()
Clears the contents of the document window
cloneNode( deep )
Clones the node and returns the new clone including descendants if deep is true
close()
Closes the document stream
createAttribute( name )
Returns a new attribute node of a name given by string name
createComment( data )
Returns a new comment node with the text given by data
createDocumentFragment()
Creates an empty document fragment
createElement( tagName )
Returns a new element object that corresponds to tagName
createElementNS
( namespace , qualified )
Creates an element node belonging to namespace and with the namespace prefix
qualified
createEvent( instance )
Creates and returns a new event instance
createStyleSheet ( url [, index ])
Creates a new styleSheet object from the Stylesheet at the URL in the string url and
inserts it into the document at index index
createTextNode( data )
Returns a new text node with value given by data
detachEvent( handler, function )
Instructs the object to stop executing function as an event handler for handler
dispatchEvent( event )
Causes event to be processed by the appropriate handler; is used to redirect events
elementFromPoint( x , y )
Returns the most deeply nested element at the Window coordinates ( x , y )
Search WWH ::




Custom Search