Body vLink property

HTML DOM Body vLink property Body object

Definitions and usages

The vLink property can set or return the vlink property value in the body element.

The vlink property describes the color of the clicked link text.

Grammar

Set the vLink property:

bodyObject.vLink=" color "

Return vLink property:

bodyObject.vLink

value describe
color Specify the link color.View full CSS color value


Browser support

HTML DOM Body vLink property HTML DOM Body vLink property HTML DOM Body vLink property HTML DOM Body vLink property HTML DOM Body vLink property

vLink properties are supported by all major browsers


Return to the color value of the text after the page link clicks and clicks:

<html>
<body id="w3s" link="blue" alink="green" vlink="red">

<p><a href="http://www.w3cschool.cn">W3CSchool.cc</a></p>
<p><a href="//www.w3cschool.cn/html/">HTML Tutorial</a></p>

<script>
document.write("Link color is: ")
document.write(document.getElementById("w3s").link);
document.write("<br>Active link color is: ")
document.write(document.getElementById("w3s").aLink);
document.write("<br>Visited link color is: ")
document.write(document.getElementById("w3s").vLink);
</script>

</body>
</html>

Try it out . . .


HTML DOM Body vLink property Body object