User Guide

340 Document
The bJumpToNode argument, which is optional, is a Boolean value that indicates whether
to scroll the Document window, if necessary, to make the selection visible. If it is omitted,
this argument defaults to
false.
Returns
Nothing.
dom.setSelection()
Availability
Dreamweaver 3.
Description
Sets the selection in the document.
Arguments
offsetBegin, offsetEnd
These arguments are the opening and closing 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.getSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3. See dom.getSelection()” on page 337.
Description
Gets the selection in the current document, which is expressed as byte offsets into the
document’s source code.
Arguments
None.
000_DW_API_Print.book Page 340 Wednesday, July 20, 2005 11:58 AM