जावास्क्रिप्ट में एक डिक्लेरेशन में बॉर्डर बॉटम प्रॉपर्टीज सेट करने के लिए, BorderBottom प्रॉपर्टी का उपयोग करें। यह आपको बॉर्डर-बॉटम-चौड़ाई, बॉर्डर-बॉटम-स्टाइल और बॉर्डर-बॉटम-कलर सेट करने की अनुमति देता है।
उदाहरण
बॉर्डर बॉटम प्रॉपर्टीज कैसे सेट करें, यह जानने के लिए आप निम्न कोड को चलाने का प्रयास कर सकते हैं -
<!DOCTYPE html>
<html>
<head>
<style>
#box {
border: 2px dashed blue;
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<button onclick="display()">Set border bottom color</button>
<div id="box">
<p>Demo Text</p>
<p>Demo Text</p>
</div>
<script>
function display() {
document.getElementById("box").style.borderBottom = "thin dashed #000000";
}
</script>
</body>
</html>