Share via


vLink Property

Returns or sets a Variant that specifies the color of all visited links in the current document. Corresponds to the vlink attribute of the BODY element.

expression.vLink

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

Values can be specified as color names or Web-safe red-green-blue (RGB) color values. For more information on available color names and RGB color values, see the HTML Color Table.

Both the vLink and vlinkColor properties correspond the vLink attribute of a BODY element. The difference between the two properties is that the vLink property is a member of the body object and the vlinkColor property is a member of the document object.

Example

The following example sets the color of all visited links in the active document to green.

ActiveDocument.body.vLink = "#00FF00"

Applies to | FPHTMLBody Object | IHTMLBodyElement Object