What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-property
DocumentBgColorProperty  
The document.bgColor property

Values

The document.bgColor property returns a string.

This property is read/write.

It supports both English names of colors and Hexadecimal values.

That means we can assign values in string format (red, blue etc.) or in hexadecimal format(#fdecb2).

Usage

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(document.bgColor) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Sign in to add a comment