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