User Guide
General editing functions 507
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>');
The result appears in the Document window, as shown in the following figure:
000_DW_API_Print.book Page 507 Wednesday, July 20, 2005 11:58 AM