JavaScript – Change the Border Radius of Div

To change the border radius of a div using JavaScript, get reference to the element, and assign required border radius value to the element.style.borderRadius property.

Example

Conclusion

In this JavaScript Tutorial, we learned how to change the border radius of a div using JavaScript.