Thursday, December 6, 2012

style.borderRightColor

Properti style.borderRightColor digunakan untuk menetapkan warna border kanan suatu elemen.

Sintaks:

obj.style.borderRightColor = value;

Nilainya:

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>