document.vlinkColor

 document.vlinkColor is used to get or set the text hyperlink color after reading in the document.


Basic syntax of document.vlinkColor

Get color color = document.vlinkColor; set color document.vlinkColor = color


The color can be a solid color (such as green, blue, pink...) or a color code color (such as #006699, #0033CC...).

document.vlinkColor example

document.vlinkColor = "blue";


The usage is quite simple, just set the color of the read link directly, but its attribute function is the same as document.alinkColor and document.linkColor in DOM Level 2 HTML is discarded [Note 1] , if you want to set the text link action in the future Color occurs, please use CSS properties.

Related topics recommended to you
  • document.alinkColor -controls the color of the hyperlink when the mouse moves over
  • document.linkColor -control the color of unclicked hyperlinks
  • JavaScript Document
  • document.bgColor -get or change the color of the web page background
  • document.title -set or query the title content of the webpage
  • document.cookie -used to set or query all cookies in the document
  • document.write() -write text content to the file
Document.vlinkColor related notes
  1. For information about document.vlinkColor deprecation, please refer to the description on W3C deprecated in DOM Level 2 HTML

Post a Comment

0 Comments