Edit This Code:
<!DOCTYPE html>
<html>
<body>

<input type="reset" id="myReset" value="Reset form">

<p>Click the "Try it" button to change the text displayed on the Reset button.</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    document.getElementById("myReset").value = "newResetButtonValue";
}
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy