HTML BodyElement.vLink Property
The HTML BodyElement.vLink property is used to returns a DOMString that represents the color of visited links.
Syntax:
BodyElement.vLink
Return Value: This property returns a DOMString that represents the color of visited links.
Example 1:
HTML
<!DOCTYPE html> < html > <!-- body tag starts here --> < body vLink = "red" > < center > < h1 >w3wiki</ h1 > < h2 >HTMLBodyElement.vLink Property</ h2 > A computer science portal for Beginner </ a > </ center > < script type = "text/javascript" > console.log(document.body.vLink); </ script > </ body > </ html > |
Output:
Example 2:
HTML
<!DOCTYPE html> < html > <!-- body tag starts here --> < body vLink = "green" > < center > < h1 >w3wiki</ h1 > < h2 >HTMLBodyElement.vLink Property</ h2 > A computer science portal for Beginner </ a > </ center > < script type = "text/javascript" > console.log(document.body.vLink); </ script > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
- Edge