reset() 메서드로 JavaScript를 사용하여 양식을 재설정하거나 지웁니다. 재설정 방법은 재설정 버튼을 클릭하는 것과 같은 형태로 모든 요소의 값을 설정합니다. 
예시
다음 코드를 실행하여 JavaScript를 사용하여 양식을 재설정할 수 있습니다.
<!DOCTYPE html>
<html>
<head>
<title>Reset HTML form</title>
</head>
<body>
<form id="newForm">
Student Name<br><input type="text" name="sname"><br>
Student Subject<br><input type="password" name="ssubject"><br>
<input type="button" onclick="newFunction()" value="Reset">
</form>
<script>
function newFunction() {
document.getElementById("newForm").reset();
}
</script>
</body>
</html>