<!DOCTYPE html>
<html>
<head>
<style>
#myDIV {
width: 300px;
height: 300px;
margin-top: 20px;
background-color: lightgreen;
border-inline-end-width: 10px;
border-inline-end-style: solid;
border-inline-end-color: black;
}
</style>
</head>
<body>
<h1>Change border-inline-end-color with JavaScript</h1>
<p>Click the "Try it" button to change the border-inline-end-color property of the DIV element:</p>
<button onclick="myFunction()">Try it</button>
<div id="myDIV">
<h1>Hello</h1>
</div>
<script>
function myFunction() {
document.getElementById("myDIV").style.borderInlineEndColor = "pink";
}
</script>
</body>
</html>