javascript document bgColor
| bgColor | NN 2 IE 3 DOM n/a |
|
Read/Write |
Provides the background color of the document. Even if the bgcolor attribute or bgColor property is set with a plain-language color name, the returned value is always a hexadecimal triplet. |
|
Setting the bgColor property of a document in Navigator 2 or 3 for Macintosh or Unix does not properly redraw the window. Window content is obscured by the new color on those platforms. For browsers that support the document.body object, use the bgColor property of that object instead. |
|
| Example | |
document.bgColor = "yellow"; |
|
| Value | |
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names. |
|
| Default | |
Varies with browser and operating system. |
|
Previous: javascript document body
534,Nickname,Homepage or email,Comments here,Add comment
