Language Reference sup Method


Description

Places the HTML <SUP> tag around the text in the object.

Syntax

strVariable.sup( ) "String Literal".sup( )

Remarks

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

var strVariable = "This is a string object"
strVariable.sup( )

The value of strVariable after the last statement above is: <SUP>This is a string object</SUP>

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