Language Reference anchor Method


Description

Places an HTML Anchor NAME tag around the text in the object.

Syntax

strVariable.anchor(anchorstring)
"String Literal".anchor(anchorstring)

Arguments

anchorstring: The text that is to be placed in the NAME argument of the HTML Anchor tag.

Remarks

This method is called to create a named anchor out of a string object. Below is an example of how the method accomplishes this:

var strVariable = "This is an anchor"
strVariable.anchor("Anchor1")
The value of strVariable after the last statement above is: <a name="Anchor1">This is an anchor</a>.

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