JavaScript Reference/Javascript Properties/borderColor

Материал из Web эксперт
Перейти к: навигация, поиск

"borderColor" Example

   <source lang="javascript">
   

<html> <body>

Contents of the cell

<button onclick="myTable.borderColor="mediumblue";">Add color to the border</button> </body> </html>


     </source>
   
  


"borderColor" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<frame> <frameset> |

| | |

+----------------+--------------------------------------------------------------+

     </source>
   
  


"borderColor" Syntax and Note

   <source lang="javascript">

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


</source>
| | |