Javascript examples for CSS Style Property:borderBottomWidth
Get the width of the bottom border of a <div> element
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-bottom:thick solid red">This is a div element.</div> <br> <button type="button" onclick="myFunction()">Return the width of the bottom border</button> <script> function myFunction() {/*from ww w.j a va 2 s . co m*/ console.log(document.getElementById("myDiv").style.borderBottomWidth); } </script> </body> </html>