setHTMLText method



Populates the current document with the specified HTML text.

Syntax

success  = document.WPObject.setHTMLText(myText)

Applies to

WordProcessor class.

Parameters

myText
String. The HTML text string to be inserted into the document. The string must be a complete HTML document with <HTML> and </HTML> tags. Only the text of the HTML document (not the HTML tags) is inserted into the WP document.

Return value

boolean. Returns true if the string is inserted successfully, and false otherwise.

Usage

All existing text in the document is replaced by setHTMLText.

See also
setText method