Javascript examples for CSS Style Property:borderLeftWidth
Set the width of the left border of a <div> element to thin:
<!DOCTYPE html> <html> <head> <style> #myDiv {//from w w w .jav a2 s. c o m border-style: 10px solid red; } </style> </head> <body> <div id="myDiv">This is a div element.</div> <br> <button type="button" onclick="myFunction()">Change width of the left border</button> <script> function myFunction() { document.getElementById("myDiv").style.borderLeftWidth = "thin"; } </script> </body> </html>