Name
borderColor — NN n/a IE 4 DOM n/a
Synopsis
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.
Example
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"
Value
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.
Default
The object’s color
property (if it is set).
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.