Javascript examples for CSS Style Property:borderRightStyle
Change the style of the right border of a <div> element to "dotted":
<!DOCTYPE html> <html> <head> <style> #myDiv {//from ww w. jav a2 s . c om border: thick solid #FF0000; } </style> </head> <body> <div id="myDiv">This is a div.</div> <br> <button type="button" onclick="myFunction()">Change style of the right border</button> <script> function myFunction() { document.getElementById("myDiv").style.borderRightStyle = "dotted"; } </script> </body> </html>