জাভাস্ক্রিপ্টে রাইট বর্ডারের প্রস্থ সেট করতে borderRightWidth প্রপার্টি ব্যবহার করা হয়।
উদাহরণ
<!DOCTYPE html> <html> <head> <style> #box { border: thick solid blue; width: 300px; height: 300px; } </style> </head> <body> <div id = "box">Demo Text</div> <br><br> <button type="button" onclick="display()">Change right border width</button> <script> function display() { document.getElementById("box").style.borderRightWidth = "10px"; } </script> </body> </html>