Name
color — NN n/a IE 4 DOM 1
Synopsis
Read/Write
Sets the foreground
(text) color style sheet
attribute of the element. For some graphically oriented elements,
such as form controls, the color attribute may also be applied to
element edges or other features. Such extracurricular behavior is
browser specific and may not be the same across browsers.
Example
document.all.specialDiv.style.color = "green"
Value
Case-insensitive style sheet color specification (see discussion at beginning of the chapter).
Default
black
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.