Name
HTMLBodyElement — the <body> of an HTML document
Availability
DOM Level 1 HTML
Inherits from/Overrides
Node → Element → HTMLElement → HTMLBodyElement
Properties
-
deprecated String aLink The value of the
alinkattribute. Specifies the color of “active” links; that is, the color of a link when the mouse has been pressed over it but has not yet been released.-
deprecated String background The value of the
backgroundattribute. Specifies the URL of an image to use as a background texture for the document.-
deprecated String bgColor The value of the
bgcolorattribute. Specifies the background color of the document.-
deprecated String link The value of the
linkattribute. Specifies the normal color of unvisited hyperlinks.-
deprecated String text The value of the
textattribute. Specifies the foreground color (the color of text) for the document.-
deprecated String vLink The value of the
vlinkattribute. Specifies the normal color of “visited” hyperlinks that have already been followed.
Description
The HTMLBodyElement interface represents the
<body> tag of a document. All HTML documents
have a <body> tag, even if it does not
explicitly appear in the document source. You can obtain the
HTMLBodyElement of a document through the body
property of the HTMLDocument interface.
The properties of this object specify default colors and images for
the document. Although these properties represent the values of
<body> attributes, the Level 0 DOM made these same values accessible through properties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access