Javascript examples for CSS Style Property:borderRightWidth
Change the width of the right border of a <div> element to thin:
<!DOCTYPE html> <html> <head> <style> #myDiv {/*from w ww .j av a 2 s. c o m*/ border-style: solid; } </style> </head> <body> <div id="myDiv">This is a div element.</div> <br> <button type="button" onclick="myFunction()">Change width of the right border</button> <script> function myFunction() { document.getElementById("myDiv").style.borderRightWidth = "thin"; } </script> </body> </html>