Body vLink property
Body objectDefinitions 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:
Return vLink property:
value | describe |
---|---|
color | Specify the link color.View full CSS color value |
Browser support
vLink properties are supported by all major browsers
Return to the color value of the text after the page link clicks and clicks:
<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 . . .
Body object