बॉटम बॉर्डर की चौड़ाई सेट करने के लिए, जावास्क्रिप्ट में borderBottomWidth प्रॉपर्टी का उपयोग करें। यह आपको चौड़ाई बदलने की अनुमति देता है।
उदाहरण
बॉटम बॉर्डर की चौड़ाई सेट करना सीखने के लिए निम्न कोड चलाकर देखें:
<!DOCTYPE html> <html> <body> <div id="box">Demo Text</div> <br> <button onclick="display()">बॉटम बॉर्डर की चौड़ाई सेट करने के लिए क्लिक करें</button> <script> function display() { document.getElementById("box").style.borderBottomStyle = "dashed"; document.getElementById("box").style.borderBottomWidth = "5px"; } </script> </body> </html>