Edit This Code:
<!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() {
    alert(document.getElementById("myDiv").style.borderRightStyle);
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy