Specifications

549
Returns
Nothing.
dom.setSelection()
Availability
Dreamweaver 3
Description
Sets the selection in the document.
Arguments
offsetBegin, offsetEnd
The arguments are the beginning and end points, respectively, for the new selection, which is
expressed as character offsets into the documents source code. If the two numbers are the same,
the new selection is an insertion point. If the new selection is not a valid HTML selection, it is
expanded to include the characters in the first valid HTML selection. For example, if
offsetBegin and offsetEnd define the range SRC="myImage.gif" within <IMG
SRC="myImage.gif">
, the selection expands to include the entire IMG tag.
Returns
Nothing.
dreamweaver.nodeExists()
Available
Dreamweaver 3
Description
Determines whether the reference to the specified node is still good. Often when writing
extensions, you reference a node and then perform an operation that deletes it (such as setting the
innerHTML or outerHTML properties of its parent). This function lets you confirm that the node
hasnt been deleted before you attempt to reference any of its properties or methods. The
referenced node does not need to be in the current document.
Arguments
node is the node that you want to check.
Returns
A Boolean value that indicates whether the node exists.