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

FORMS (BUTTOM) 2

Status
Not open for further replies.

NiteCrawlr

Programmer
Mar 16, 2001
140
BR
I have a form which has some text box, and instead of normal buttons, I'm using:
<INPUT type=IMAGE SRC=&quot;imagens/bot_clear.gif&quot; border=0>
I want this image buttom to have the same properties as the
<input type=reset>

how do I do this???

Thanks,

Frederico
 
Hi Frederico,

Try this,
<INPUT type=IMAGE
SRC=&quot;imagens/bot_clear.gif&quot;
border=0
onClick=&quot;document.FormName.reset()&quot;>

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Hi again,

Netscape may have some problem with &quot;type=image&quot;, so I suggust you use regular images to do the reset function
for example:

<script>
function resetForm() {
document.Myform.reset()
}
</script>

<form name=Myform>
...
...
</form>
<A href=&quot;javascript:resetForm()&quot;><img src=&quot;imagens/bot_clear.gif&quot; border=0></a>

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top