Microsoft® JScript
strike Method

See Also

Language Reference 

Description

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

Syntax

strVariable.strike( )
"String Literal".strike( )

Remarks

The example that follows demonstrates how the strike method works:


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

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

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


© 1996 by Microsoft Corporation.
Casa de Bender