Skip to Main Content
JavaScript: The Definitive Guide, Fourth Edition
book

JavaScript: The Definitive Guide, Fourth Edition

by David Flanagan
November 2001
Intermediate to advanced content levelIntermediate to advanced
936 pages
68h 43m
English
O'Reilly Media, Inc.
Content preview from JavaScript: The Definitive Guide, Fourth Edition

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 alink attribute. 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 background attribute. Specifies the URL of an image to use as a background texture for the document.

deprecated String bgColor

The value of the bgcolor attribute. Specifies the background color of the document.

deprecated String link

The value of the link attribute. Specifies the normal color of unvisited hyperlinks.

deprecated String text

The value of the text attribute. Specifies the foreground color (the color of text) for the document.

deprecated String vLink

The value of the vlink attribute. 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.
Start your free trial

You might also like

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition

John Pollock
Coding with JavaScript For Dummies

Coding with JavaScript For Dummies

Chris Minnick, Eva Holland

Publisher Resources

ISBN: 0596000480Supplemental ContentCatalog PageErrata