Javascript examples for CSS Style Property:borderRightColor
Set the right border color of a <div> element
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-right:thick solid green">This is a div.</div> <br> <button type="button" onclick="myFunction()">Return right border color</button> <script> function myFunction() {//from ww w . java 2s . c o m document.getElementById("myDiv").style.borderRightColor = 'red'; } </script> </body> </html>