Ephox Home Page Ephox Home Page  
Search
Buy/Upgrade
 
 Developers
Developers Home
EditLive! for Java
EditLive! for Windows
System Requirements
Getting Started
Integration Samples
Articles
API Reference
EditLive! for XML
Discussion Forums

BodyAttribute Property

Sets the value of a specified page attribute and value into the BODY tag within EditLive!.

Applies To

EditLive Object

Syntax

JavaScript object.setBodyAttribute( sPageAttribute, sPageAttributeValue );
 

Possible Values

sPageAttribute Required. String that specifies the page attribute name to be placed in the BODY tag. 
sPageAttributeValue Required. String that specified the value of the page attribute.

Examples

JavaScript

The following example would result in the text attribute being added to the BODY tag with a value of '#000080'.

function EditLive1_onload() {
  editLive1.setEditLiveMode( 'HTMLString' );
  editLive1.setBodyAttribute('text','#000080');
}

Remarks

Only one page property can be set each time this property is called but this property can be used many times to insert as many page properties as is required.

Minimum Version

EditLive! 2.0 or greater

See Also

 

 

Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation.
Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.