August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.backgroundColor
The backgroundColor property specifies the background color associated with the tag called tagName.
Listing 7.163 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.tags.A.backgroundColor = "red"; //Hide End ---> </script> <a name="THIS">This</a> is an anchor that uses styles from the A tag. </html> |
Read now
Unlock full access