get an elements set height in js code example Example: javascript set div height document.getElementById("myBtn").style.height = "50px";