# How to set the shape of the border of the top-right corner with JavaScript?

HTMLJavascriptProgramming Scripts

To set the shape of the border of the top-right corner in JavaScript, use the borderTopRightRadius property. Set border radius using this property.

## Example

You can try to run the following code to learn how to set the shape of the top-right border with JavaScript.

Live Demo

<!DOCTYPE html>
<html>
<style>
#box {
border: thick solid gray;
width: 300px;
height: 200px
}
</style>
</html>