please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Document.bgColor Property

Name

Document.bgColor Property---the document background color

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

document.bgColor

Description

bgColor is a string property that specifies the background color of document.

The document text color can be set through the BGCOLOR attribute in the <BODY> HTML tag, and the bgColor property will contain the specified value. The background color may also be specified by assigning a value to bgColor directly. Unlike the other color properties, bgColor can be set at any time. Unfortunately, in Navigator 2.0, setting bgColor is buggy.

Colors are specified either as one of the standard color names recognized by JavaScript, or as red, green, and blue color values, expressed as a string of six hexadecimal digits in the form "RRGGBB".

Usage

When setting one color property for a Document, you should probably set the other color properties to match. Be careful when specifying color values; it is far easier to end up with a garish web page than it is to choose a palette of harmonious colors. In general, the default colors are a safe choice, and may also reflect the end user's color preferences.

Note that the background of a document may also be set to an image with the BACKGROUND attribute of the HTML <BODY> tag.

See Also

"Document", "Document.alinkColor", "Document.fgColor", "Document.linkColor", "Document.vlinkColor", Appendix G, JavaScript and HTML Color Names and Values


Previous Home Next
Document.applets[] Book Index Document.clear()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/JAVA/SCRIPT/definitive/refp_76.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/19 04:28,
TOP NEW HELP FIND: 
18.189.189.251:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/language/JAVA/SCRIPT/definitive/refp_76.htm"> [Chapter 21] Reference: Document.bgColor</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .