HTML BodyElement.vLink Property
Last Updated :
05 Jan, 2021
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 vLink = "red" >
< center >
< h1 >GeeksforGeeks</ h1 >
< h2 >HTMLBodyElement.vLink Property</ h2 >
A computer science
portal for geeks
</ a >
</ center >
< script type = "text/javascript" >
console.log(document.body.vLink);
</ script >
</ body >
</ html >
|
Output:
Example 2:
HTML
<!DOCTYPE html>
< html >
< body vLink = "green" >
< center >
< h1 >GeeksforGeeks</ h1 >
< h2 >HTMLBodyElement.vLink Property</ h2 >
A computer science
portal for geeks
</ 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
Share your thoughts in the comments
Please Login to comment...