August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.ids.idName.borderColor
The borderColor property specifies the color of the border of an element as associated with the ID called idName.
Listing 7.108 uses the borderColor property to set the color of the border that surrounds a text header to blue.
<html> <script> <!-- Hide //Create a style sheet id that creates a left border document.ids.ABORDER.borderWidths(10); document.ids.ABORDER.borderColor = "blue"; //Hide End ---> </script> <h2 id=ABORDER>This text has a blue border</h2> </html> |
Read now
Unlock full access