Click to See Complete Forum and Search --> : clear password field before submittin form


jacven
02-11-2003, 07:10 PM
Hi, how can I make a form clear the password field before submit and process data? Thank you.

Dan Drillich
02-11-2003, 08:21 PM
An interesting request :rolleyes:

Try this -


<form name="declaration" action="#" onsubmit="document.declaration.p1.value=''">

<center>
<input name="p1" type="password" />Password 1
<br>
<input name="p2" type="text" />Password 2
</center>

<br>
<br>


<center>
<input type="submit" value="Begin" name="applications" align="right" >
</center>


</form>