Hi,
I have a form that submits data to a script that is executed in a separate frame so I need to clear the form once this has been done. I've had a look round and found the following:
document.myForm.reset();
which apparently has to be used with onSubmit somehow.
How would I adapt the following?
<form name="myForm" method="post" action="addrecord.asp">
<input type="text" name="UserName"><br>
<input type="submit" value="Add Record">
</form>
I have a form that submits data to a script that is executed in a separate frame so I need to clear the form once this has been done. I've had a look round and found the following:
document.myForm.reset();
which apparently has to be used with onSubmit somehow.
How would I adapt the following?
<form name="myForm" method="post" action="addrecord.asp">
<input type="text" name="UserName"><br>
<input type="submit" value="Add Record">
</form>