জাভাস্ক্রিপ্টে টপ-রাইট কর্নারের বর্ডার শেপ সেট করতে borderTopRightRadius প্রপার্টি ব্যবহার করা হয়। এই প্রপার্টি দিয়ে বর্ডার রেডিয়াস সেট করা যায়।
উদাহরণ
<!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 right border radius</button> <script> function display() { document.getElementById("box").style.borderTopRightRadius = "20px"; } </script> </body> </html>