양식이 재설정되면 onreset 속성 트리거. 다음 코드를 실행하여 onreset을 구현할 수 있습니다. 속성 -
예시
<!DOCTYPE html>
<html>
<body>
<form onreset = "display()">
Student Name:<br>
<input type = "text" name = "sname">
<br>
Student Subject:<br>
<input type = "text" name = "ssubject">
<br>
<input type = "reset" value = "reset">
</form>
<script>
function display() {
alert("Form reset successfull!");
}
</script>
</body>
</html>