I have a form with a standard reset button coded thusly:
Trouble i
document.getElementById('frm').reset()