Maybe use a setTimeout method and change your form so the reset becomes a function fired onclick of a input reset?
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Form onreset</title>
</head>
<body>
<form id="myForm">
<input type="text" name="fname">
<input type="text" name="lname">
<input type="button" onclick="myFunction();" value="Reset">
</form>
<script>
function myFunction() {
document.getElementById("myForm").reset();
setTimeout(function(){alert("The form was reset!")}, 1000);
}
</script>
</body>
</html>
Bookmarks