July 1998
Intermediate to advanced
1456 pages
65h 5m
English
borderColor — NN n/a IE 4 DOM n/a
Read/Write
A shortcut attribute that lets you set multiple border edges to the same or different colors. For Internet Explorer, you may supply one to four space-delimited color values. The number of values determines which sides receive the assigned colors.
document.all.announce.style.borderColor = "red" document.all.announce.style.borderColor = "red green" document.all.announce.style.borderColor = "black rgb(100, 75, 0) #c0c0c0" document.all.announce.style.borderColor = "yellow green blue red"
In Internet Explorer, this property accepts one, two, three, or four
color values, depending on how many and which borders you want to set
with specific colors. See the border-color
attribute listing in Chapter 10 for complete
details on how the number of values affects this property.
The object’s color property (if it is set).
Read now
Unlock full access