Language Reference bold Method


Description

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

Syntax

strVariable.bold( )
"String Literal".bold( )

Remarks

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

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

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

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