Language Reference fontsize Method

                  


Description

Places the HTML <FONT SIZE> tag around the text in the object.

Syntax

strVariable.fontsize( intSize )
"String Literal".fontcolor( intSize )

Arguments

intSize: An integer value that determines the size of the text. Valid values depend on your JScript host. See your hosts documentation for more information.

Remarks

Below is an example of the effects of the fontsize method:

var strVariable = "This is a string object"
strVariable.fontsize(-1)

The value of strVariable after the last statement above is: <FONT SIZE="-1">This is a string object</FONT>

No checking is done to see if the tag already exists in the object.