String.sub() (Method)

Encapsulates the stringEncapsulate within an <SUB> 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.sub()

Passing in the string "Subscript text" will result in the following string:

<SUB>Subscript text</SUB>

This is now deprecated in favor of the more sophisticated controls available with style sheets.

See also:style.fontSize, style.fontStyle