This property sets the content of the EditLive! for Java applet between the <BODY> and </BODY> tags. The setting of this property is mutually exclusive with that of setDocument.
JavaScript object.setBody(strBody)
strBody Required. A string containing the text that will be the initial contents of the instance of EditLive! for Java between the <BODY> and </BODY> tags.
The following code creates an instance of EditLive! for Java and sets the initial contents to be <P>Initial contents of Ephox EditLive! for Java</P>.
Note: The string passed to the setBody property must be URL encoded or encoded using the JavaScript escape function. The example below uses the JavaScript escape function.
var editlivejava1;
editlivejava1 = new EditLiveJava("ELJApplet1","600","400");
editlivejava1.setBody(escape("<p>Initial contents of Ephox EditLive! for Java</p>"));
The string passed to the setBody property must be URL encoded or encoded using the JavaScript escape function.
The setting of this property is mutually exclusive with that of setDocument.
Copyright © 2001-2004 Ephox Corporation. All Rights Reserved.