Answers for "how to create horizontal line in html through javascript"

2

how to draw a horizontal line in javascript

var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);
Posted by: Guest on May-20-2020

Code answers related to "how to create horizontal line in html through javascript"

Browse Popular Code Answers by Language