Returns
Nothing.
dom.insertHTML()
Availability
Dreamweaver 3.
Description
Inserts HTML content into the document at the current insertion point.
Arguments
contentToInsert, {bReplaceCurrentSelection}
The
contentToInsert
The
bReplaceCurrentSelection
indicates whether the content should replace the current selection. If the
bReplaceCurrentSelection
current selection. If the value is
Returns
Nothing.
Example
The following code inserts the HTML string
var theDOM = dw.getDocumentDOM();
theDOM.insertHTML('<b>130</b>');
The result appears in the Document window, as shown in the following figure:
argument is the content you want to insert.
argument, which is optional, is a Boolean value that
argument is a value of
, the content is inserted after the current selection.
false
<b>130</b>
, the content replaces the
true
into the current document:
General editing functions
507
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?