<!DOCTYPE html>Buttons:type="button" id="firstbtn" value="OK"type="button" id="secondbtn" value="OK"Click the button below to disable the first button above.onclick="disableElement()"Disable buttonfunction disableElement(){document.getElementById("firstbtn").disabled=true;}