User Guide
394 Chapter 18: Code
Returns
A Boolean value that indicates whether the entire selection has the specified character markup.
The function returns a value of
false if only part of the selection has the specified markup.
dom.indent()
Availability
Dreamweaver 3.
Description
Indents the selection using BLOCKQUOTE tags. If the selection is a list item, this function indents
the selection by converting the selected item into a nested list. This nested list is of the same type
as the outer list and contains one item, the original selection.
Arguments
None.
Returns
Nothing.
dom.insertHTML()
Availability
Dreamweaver 3.
Description
Inserts HTML content into the document at the current insertion point.
Arguments
contentToInsert
, {bReplaceCurrentSelection}
• The contentToInsert argument is the content you want to insert.
• The bReplaceCurrentSelection argument, which is optional, is a Boolean value that
indicates whether the content should replace the current selection. If the
bReplaceCurrentSelection argument is a value of true, the content replaces the current
selection. If the value is false, the content is inserted after the current selection.
Returns
Nothing.
Example
The following code inserts the HTML string <b>130</b> into the current document:
var theDOM = dw.getDocumentDOM();
theDOM.insertHTML('<b>130</b>');
000_DW_API_Print.book Page 394 Wednesday, August 20, 2003 9:14 AM