DREAMWEAVER CS3
261
API Reference
Description
Gets the object in the DOM tree that completely contains the range of characters between the specified opening and
closing points.
Arguments
offsetBegin, offsetEnd
• These arguments are the opening and closing points, respectively, of a range of characters, which is expressed as
byte offsets into the document's source code.
Returns
The tag, text, or comment object that completely contains the specified range of characters.
dreamweaver.selectAll()
Availability
Dreamweaver 3.
Description
Performs a Select All operation in the active document window, the Site panel or, on the Macintosh, the text field
that has focus in a dialog box or floating panel.
Note: If the operation takes place in the active document, it usually selects all the content in the active document. In some
cases (for example, when the insertion point is inside a table), however, it selects only part of the active document. To set
the selection to the entire document, use the
function.
dom.setSelection()
Arguments
None.
Returns
Nothing.
Enabler
See "dreamweaver.canSelectAll()" on page 451.
dreamweaver.setSelection() (deprecated)
Availability
Dreamweaver 2; deprecated in 3 in favor of
.
"dom.setSelection()" on page 259
Description
Sets the selection in the current document. This function can move the selection only within the current document;
it cannot change the focus to a different document.
Arguments
offsetBegin, offsetEnd