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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick Events

Status
Not open for further replies.

fusionaire

Programmer
May 20, 2000
67
US
I have a site that uses images to let the user navigate through the site. The problem is, I have pages that contain forms on them ,so I need an "onClick" event of an image so that if they click on the "clear" button, it will actually clear the data from the page. Here is the code:

<input type=&quot;image&quot; img src=&quot;reset.jpg&quot; border=&quot;0&quot; onclick=&quot;reset(?)&quot;>
<input type=&quot;image&quot; img src=&quot;proceed.jpg&quot; border=&quot;0&quot;>

Thanks in advance! [sig][/sig]
 
Hi fusionaire,

Try this..
<form name=&quot;aForm&quot;>
<input type=&quot;image&quot;
img src=&quot;reset.jpg&quot;
border=&quot;0&quot;
onclick=&quot;document.aForm.reset(); return false&quot;>
</form>

Pepper
 
Dear PepperPepsi~
Thank you very much for the help, it's exactly what I needed!

Fusionaire [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top