style.outlineColor (Property)

The color of a border outline around the styled element.


DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.outlineColor
CSS syntax:outline-color: aColor
Argument list:aColorAn outline color value

This property lets you change the color of one or more of the outlines around an object.

If you specify only one value, all four outlines are set. Two values define the top and bottom with the first, and the second then applies to the left and right. If three values are specified, the first controls the top, the second controls both left and right, while the third controls the bottom edge. When all four values are specified, they are assumed to be in the order: top, right, bottom and left.

Color values can be specified using symbolic names, rgb() functions or hash delimited hex values.

See also:Color names, Color value, rgb(), style.borderColor, style.outline