automatically clear user entry form in html?

how can I write in a html code that will clear user entry form automatically after pressing submit button. (I don't want a reset button, i want it to clear the form automatically)

aka. enter number

(# entered) submit

now form is cleared automatically

enter another number...
 
Javascript... Make some function like clearData(). And on the submit button, you can have an onClick="ClearData()".

Inside clearData()
You could have something like document.getElementByName('inputFieldName').value = "";
For each field in your form.
 
Back
Top