borderRightColor 属性设置右边框的颜色。
Object.style.borderRightColor=color-name|color-rgb|color-hex|transparent
本例改变右边框的颜色:
<html>
<head>
<style type="text/css">
p
{
border: thick solid #FF0000;
}
</style>
<script type="text/javascript">
function changeBorderColor()
{
document.getElementById("p1").style.borderRightColor="#0000FF";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorderColor()"
value="Change right border" />
<p id="p1">This is a paragraph</p>
</body>
</html>