Javascript examples for CSS Style Property:borderLeftStyle
Get the left border style of a <div> element:
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-left:double;">This is a div.</div> <br> <button type="button" onclick="myFunction()">Return left border style</button> <script> function myFunction() {/*ww w . java 2 s. c om*/ console.log(document.getElementById("myDiv").style.borderLeftStyle); } </script> </body> </html>