Availability: |
| |||||||
Deprecated: | Yes | |||||||
Property/method value type: | String primitive | |||||||
JavaScript syntax: | - | myString.fontsize() | ||||||
- | myString.fontsize(aSize) | |||||||
Argument list: | aSize | A value to embed as an HTML tag attribute |
Passing in the string "Small text" with the parameter "SMALL" will result in the following string:
<FONT SIZE="SMALL">ABCD</FONT>
This is now deprecated in favor of the more sophisticated controls available with style sheets.
See also: | FONT.size, style.fontSize |
Prev | Home | Next |
String.fontcolor() | Up | String.fromCharCode() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |