reset function javascript code example Example: reset function javascript document.getElementById("myForm").reset();