Easy Tutorial
❮ Jsref Regexp Zeroone Prop Canvas Linejoin ❯

vLink Property of the Body Element


Definition and Usage

The vLink property sets or returns the value of the vlink attribute of the body element.

The vlink attribute describes the color of the link text that has been clicked.

Syntax

Setting the vLink property:

Returning the vLink property:

Value Description
color Specifies the link color. See the full CSS Color Values

Browser Support

All major browsers support the vLink property.


Example

Return the color values of the link text before and after clicking:

<p><a href="//www.tutorialprob.com">tutorialpro.org</a></p>
<p><a href="//www.tutorialprob.com/html/">HTML Tutorial</a></p>
<script>
document.write("Unclicked link color is: ")
document.write(document.getElementById("tutorialpro").link);
document.write("<br>Selected link color is: ")
document.write(document.getElementById("tutorialpro").aLink);
document.write("<br>Visited link color is: ")
document.write(document.getElementById("tutorialpro").vLink);
</script>

❮ Jsref Regexp Zeroone Prop Canvas Linejoin ❯