border
UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]
n.Border; edge; edging; wrapping Edge
vt.& vi. Bound with, on the edge of...
vt. Along the edge of, surround..., edge...
vi. Approximate, adjacent
Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered
color
英[ 'kʌlə(r)] 美[ˈkʌlɚ]
n.<Beauty> color, color; skin color, complexion, blood color; pigment, dye; essence
v.<Beauty> ; to color...; to change the color of...; to whitewash, to render, to give color; to blush
Third person singular: colors Plural: colors Present participle: coloring Past tense: colored Past participle: colored
javascript borderColor attribute syntax
Function:Set the color of the element's border.
Syntax: Object.style.borderBottomColor=color-name|color-rgb|color-hex
javascript borderColor attribute example
<html> <head> <style type="text/css"> p {border: thick solid #FF0000} </style> <script type="text/javascript"> function changeBorderColor() { document.getElementById("p1").style.borderBottomColor="blue"; } </script> </head> <body> <input type="button" onclick="changeBorderColor()" value="Change border color" /> <p id="p1">This is a paragraph</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance