How to set the shape of the border of the bottom-left corner in JavaScript DOM?

HTMLJavascriptProgramming Scripts

To set the shape of the border of bottom-right corner in JavaScript, use the borderBottomLeftRadius property. It allows you to add a rounded border.


You can try to run the following code to learn how to set the shape of the bottom-left corner −

Live Demo

<!DOCTYPE html>
         #box {
            border: 2px dashed blue;
            width: 120px;
            height: 120px;
      <button onclick="display()">Set bottom-left border corner</button>
      <div id="box">
         <p>Demo Text</p>
         <p>Demo Text</p>
         function display() {
            document.getElementById("box").style.borderBottomLeftRadius = "30px";
Updated on 23-Jun-2020 09:13:41