Previous PageNext Page

7.24.4 bold Method

Places HTML <B> tags around text in a String object.
 

Syntax

strVariable.bold( )

"String Literal".bold( )

Arguments

strVariable
The name of a String object.

Remarks

The example that follows demonstrates how the bold method works:
 

var strVariable = "This is a string object";

strVariable = strVariable.bold( );

The value of strVariable after the last statement is:
 

<B>This is a string object</B>

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

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page