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