Reset fungsi javascript

document.getElementById("myForm").reset();
Undefined