faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 14 people (100%) answered Yes
Recently 7 of 7 people (100%) answered Yes

Entry

How do I use the system colors in my web page?

Mar 9th, 2000 07:05
Martin Honnen, Marcus Young, http://msdn.microsoft.com/workshop/author/dhtml/reference/colors/colors.asp


In addition to rgb color values and color names (like blue, red, green) 
IE4+ knows so called system color names which will match the system 
color scheme set up on the client. For instance
  document.bgColor = 'background'
will set the document background color to the color value of the 
windows desktop on the particular client.
The given url has a table with common (all??) system color names.