99
rated 0 times
[
103]
[
4]
/ answers: 1 / hits: 39524
/ 12 Years ago, tue, october 16, 2012, 12:00:00
I have the following form which is getting pre populated with values on load. I want to have empty input boxes on load using Javascript. However I do not have access to the <body>
tag so <body onload=
will not work here. Is there any other way to clear the form fields on load?
<form method=POST action=>
<input name=username id=user value= /><br />
<input name=pwd id=pass value= />
<input type=submit value=Go />
</form>
More From » dom