String.fontsize() (Method)

Encapsulates the string within an <FONT SIZE="..."> tag context.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server - 2.0
Opera - 3.0
Deprecated:Yes
Property/method value type:String primitive
JavaScript syntax:-myString.fontsize()
-myString.fontsize(aSize)
Argument list:aSizeA 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