Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset button on a form

Status
Not open for further replies.

ckennerdale

Programmer
Dec 23, 2000
158
GB
can you use javascript to reset a form, so that you can use a graphic for a button instead of the standard html button.

I can do it for send, but not for reset.

Thanks Caspar Kennerdale
 
This should work:

<form id=frm>
<input type=text value='reset this later'>
<img src=firm.gif onclick=&quot;document.getElementById('frm').reset();&quot;>
<input type=reset>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top