ZVON > References > DOM2 Reference

getStringValue (method )

Owning interface and usage:  
CSSPrimitiveValue.getStringValue()

Member of these other interfaces:  
none

Description:  
This method is used to get the string value. If the CSS value doesn't contain a string value, a DOMException is raised. Note: Some properties (like 'font-family' or 'voice-family') convert a whitespace separated list of idents to a string.

Parameters:  
none

Returns:  
DOMString -  The string value in the current unit. The current primitiveType can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT and CSS_ATTR).

Exceptions:  
DOMException INVALID_ACCESS_ERR
Raised if the CSS value doesn't contain a string value.