![]() |
Previous | Next |
The textWidth attribute retrieves the width in pixels of the text contained in the value attribute.
Syntax
elementID.textWidth
Possible Values
This attribute is a read-only Number (int).
Remarks
The value returned is based on the fontFace, fontSize, and fontStyle attributes as well as on the actual characters in the value attribute string.
Example
Please see the value attribute for a sample illustrating how the attributes of the TEXT element are used.
See Also
Previous | Next |