You may just need to return false after calling reset.
onclick="document.MyForm.reset(); return false;" 
 
Or just use a standard img or the html:img tag instead of html:image

-----Original Message-----
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 7:50 AM
To: Struts Users Mailing List
Subject: Reset Image Button

Is there a way to create an image button that IS a reset button?

I tried this:
<html:image src="reset.gif" onclick="document.MyForm.reset()" />

and this:
<html:reset><html:image src="reset.gif"
onclick="document.MyForm.reset()" /></html:reset>

But unfortunately, it didn't work! :-(

Marcus


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-----------------------------------------
The information contained in this message may be privileged,
confidential, and protected from disclosure. If the reader of this
message is not the intended recipient, or any employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution, or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.

Thank you. Paychex, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to