javascript STYLE borderColor

borderColor NN 6 IE 4 DOM 2  

 

Read/Write  

A shortcut attribute that lets you set multiple border edges to the same or different colors. You may supply one to four space-delimited color values. The number of values determines which sides receive the assigned colors.

 
Example
 
document.getElementById("announce").style.borderColor = "red";
document.getElementById("announce").style.borderColor = "red green";
document.getElementById("announce").style.borderColor =
"black rgb(100, 75, 0) #c0c0c0";
document.getElementById("announce").style.borderColor = "yellow green blue red";
 
Value

This property accepts one, two, three, or four color values as a string (including transparent as a color), depending on how many and which borders you want to set with specific colors.

 
Default

The object's color property (if it is set).


  • #1
    2009-05-12
    [Quote]
    I find this site valuable.
  • selim
    #2
    2009-11-10
    [Quote]
    thanks so much.
  • #3
    2010-04-28
    [Quote]
    Thanks, this is what I was looking for. :)
  • #4
    2011-06-04
    [Quote]
    I can't complain. What i needed, when i needed it!
  • #5
    2011-11-10
    [Quote]
    Wow, this is really the thing I was looking for.
    thanks guys!
romel
selim
Javascript Guy
plr store
Ashish

1821,Nickname,Homepage or email,Comments here,Add comment