ZVON > References > DOM2 Reference

setStringValue (method )

Owning interface and usage:  
CSSPrimitiveValue.setStringValue(stringType, stringValue)

Member of these other interfaces:  
none

Description:  
A method to set the string value with the specified unit. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DOMException will be raised.

Parameters:  
unsigned stringType  -  A string code as defined above. The string code can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT, and CSS_ATTR).
DOMString stringValue  -  The new string value.

Returns:  
nothing

Exceptions:  
DOMException INVALID_ACCESS_ERR
Raised if the CSS value doesn't contain a string value or if the string value can't be converted into the specified unit.
DOMException NO_MODIFICATION_ALLOWED_ERR
Raised if this property is readonly.