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