Navigator 2.0, Internet Explorer 3.0
document.bgColor
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".
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.
"Document", "Document.alinkColor", "Document.fgColor", "Document.linkColor", "Document.vlinkColor", Appendix G, JavaScript and HTML Color Names and Values
file: /Techref/language/java/script/definitive/refp_76.htm, 5KB, , updated: 2019/10/14 16:00, local time: 2024/8/23 20:26,
3.15.239.95: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? <A HREF="http://piclist.com/tecHREF/language/java/script/definitive/refp_76.htm"> [Chapter 21] Reference: Document.bgColor</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.