August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.ids.idName.backgroundColor
The backgroundColor property specifies the background color associated with the ID called idName.
Listing 7.105 uses the backgroundColor property to make the background color around an anchor red.
<html> <script> <!-- Hide //Create a style sheet id that contains the background color document.ids.BG.backgroundColor = "red"; //Hide End ---> </script> <a id=BG name="THIS">This</a> is an anchor that uses styles from the BG id. </html> |
Read now
Unlock full access