HTMLBodyElement Interface

An HTMLBodyElement interface is the HTML document body. This element is always present in the DOM API even if the tags are not present in the source document.



IDL Definition

Interface HTMLBodyElement : HTMLElement {

           attribute  DOMString                aLink;
           attribute  DOMString                background;
           attribute  DOMString                bgColor; 
           attribute  DOMString                link;
           attribute  DOMString                text;
           attribute  DOMString                vLink;

};

Semantic Requirements

  1. The aLink attribute contains the color of active links.
  2. The background attribute contains the URI of the background texture tile image.
  3. The bgColor attribute is the document background color.
  4. The link attribute is the color of links that are not active or unvisited.
  5. The text attribute contains the document text color.
  6. The vLink attribute is the color of the links that have been visited by the user.

If you have comments or suggestions, email me at mbrady@nist.gov