<html>
<body>
<form>
First Name:<input id="fname"><br>
Last Name:<input id="lname"><br>
<input type="reset" id="rst">
</form>
<p>Click the button below to disable the reset button above.</p>
<button onclick="disableElement()">Disable Reset Button</button>
<script>
function disableElement()
{
document.getElementById("rst").disabled=true;
}
</script>
</body>
</html>