Document: vlinkColor property

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Thuộc tính Document.vlinkColor lấy/đặt màu của các liên kết mà người dùng đã truy cập trong tài liệu.

Giá trị

Một chuỗi đại diện cho màu dưới dạng từ (ví dụ: "red") hoặc giá trị thập lục phân (ví dụ: "#ff0000").

Khi được đặt thành giá trị null, giá trị null đó được chuyển đổi thành chuỗi rỗng (""), nên document.vlinkColor = null tương đương với document.vlinkColor = "".

Ghi chú

  • Giá trị mặc định cho thuộc tính này trong Mozilla Firefox là màu tím (#551a8b dưới dạng thập lục phân).
  • Document.vlinkColor đã bị loại bỏ trong đặc tả HTML.
  • Phương án thay thế được khuyến nghị là lấy/đặt màu của lớp giả CSS :visited trên các phần tử HTML <a> (ví dụ: a:visited {color:red;}).

Đặc tả kỹ thuật

Specification
HTML
# dom-document-vlinkcolor

Tương thích trình duyệt