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