जावास्क्रिप्ट में ऊपरी-बाएँ कोने के बॉर्डर का आकार सेट करने के लिए, borderTopLeftRadius का उपयोग करें संपत्ति। इस गुण का उपयोग करके सीमा का दायरा निर्धारित करें।
उदाहरण
जावास्क्रिप्ट के साथ ऊपरी-बाएँ बॉर्डर के आकार को सेट करने का तरीका जानने के लिए आप निम्न कोड को चलाने का प्रयास कर सकते हैं -
<!DOCTYPE html>
<html>
<head>
<style>
#box {
border: thick solid gray;
width: 300px;
height: 200px
}
</style>
</head>
<body>
<div id="box">Demo Text</div>
<br><br>
<button type="button" onclick="display()">Change top left border radius</button>
<script>
function display() {
document.getElementById("box").style.borderTopLeftRadius = "20px";
}
</script>
</body>
</html>