Contents - Index - Previous - Next


InsertHTML method




Declaration
function InsertHTML(const HTMLText: WideString): Boolean;

Description

Inserts the raw HTML specified by HTMLText into the body of the document at the insertion point or over the selection.

Returns True on success. Returns False on failure.

Tip:  The InsertHTML method acts exactly in the same way as setting the SelHTML property. The only difference between calling the InsertHTML method and setting the SelHTML property is that the method call returns a Boolean result value that indicates success or failure.