Javascript examples for CSS Style Property:borderRightStyle
Return the right border style of a <div> element:
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-right:double;">This is a div.</div> <br> <button type="button" onclick="myFunction()">Return right border style</button> <script> function myFunction() {//www .j a va 2 s .co m console.log(document.getElementById("myDiv").style.borderRightStyle); } </script> </body> </html>