JavaScript Reference/Javascript Properties/borderColor
Версия от 18:30, 25 мая 2010; (обсуждение)
"borderColor" Example
<html>
<body>
<table border="10" id="myTable">
<tr>
<td>Contents of the cell</td>
</tr>
</table>
<button onclick="myTable.borderColor="mediumblue";">Add color to the border</button>
</body>
</html>
"borderColor" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<frame> <frameset> |
| |<table> <td> |
| |<th> <tr> |
+----------------+--------------------------------------------------------------+
"borderColor" Syntax and Note
Note:
Read and write property.
Sets the element"s border color.
Value:
Web color name or hexadecimal value in #RRGGBB format.
Syntax:
document.all.elementID.borderColor = value