Thursday, December 6, 2012

style.borderBottomColor

Properti style.borderBottomColor digunakan untuk menetapkan warna border bawah suatu elemen.

Sintaks:

obj.style.borderBottomColor = value;

Nilainya:

Contoh:

<HTML> <HEAD> <TITLE>style.borderBottomColor</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.borderBottomColor = "green"; </SCRIPT> </BODY> </HTML>