जावास्क्रिप्ट में सभी राइट बॉर्डर प्रॉपर्टीज सेट करने के लिए, borderRight प्रॉपर्टी का उपयोग करें। इस प्रॉपर्टी का उपयोग करके बॉर्डर का रंग, स्टाइल, और चौड़ाई एक साथ सेट करें।
उदाहरण
सभी राइट बॉर्डर प्रॉपर्टीज एक साथ सेट करना सीखने के लिए निम्न कोड चलाकर देखें:
<!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()">राइट बॉर्डर बदलें</button> <script> function display() { document.getElementById("box").style.borderRight = "thick solid #000000"; } </script> </body> </html>