Properti style.borderRightColor digunakan untuk menetapkan warna border kanan suatu elemen.
Sintaks:
obj.style.borderRightColor = value;
Nilainya:
- color
Hex color, RGB color, Color name transparent
inherit
Contoh:
<HTML>
<HEAD>
<TITLE>style.borderRightColor</TITLE>
<STYLE TYPE="text/css">
#mydiv
{
width: 500px;
height: 500px;
margin: 0 auto;
border: solid red 1px;
}
</STYLE>
</HEAD>
<BODY>
<DIV ID="mydiv"></DIV>
<SCRIPT TYPE="text/javascript">
document.getElementById("mydiv").style.borderRightColor = "green";
</SCRIPT>
</BODY>
</HTML>