
DocumentFragment
JavaScript Pocket Reference
|
71
getElementsByTagName(tagname)
Returns an array of all Element nodes in this document that
have the specified tag name. The Element nodes appear in the
returned array in the same order they appear in the document
source.
importNode(importedNode, deep)
Creates and returns a copy of a node from some other docu-
ment that is suitable for insertion into this document. If the
deep argument is true, it recursively copies the children of the
node too. DOM Level 2.
Netscape 4 Methods
getSelection()
Returns the currently selected document text with HTML
tags removed.
IE 4 Methods
elementFromPoint(x,y)
Returns the Element located at a specified point.
Event Handlers
In DOM-compliant browsers and IE 4, the Document object
supports the same list of generic event handlers that the Element
object does. Although the
onload and onunload handlers logically
belong to the Document object, they are implemented as proper-
ties of the Window object.
See Also
Anchor, Applet, Element, Form, Image, Layer, Link, Window
DocumentFragment
nodes to be manipulated together
DOM Level 1
Inherits From: Node
Description
DocumentFragment inherits the methods and properties of Node,
and defines no new method or properties of its own. It has one
important behavior, however: when a DocumentFragment is