Javascript examples for CSS Style Property:borderBottom
Get the border-bottom property values of a <div> element:
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-bottom:5px solid red;">This is a div element.</div> <br> <button type="button" onclick="myFunction()">Return bottom border</button> <script> function myFunction() {//from w w w .j av a 2 s.c o m console.log(document.getElementById("myDiv").style.borderBottom); } </script> </body> </html>