This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > 'reset' form image button





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 'reset' form image button
Osgood

2004-08-31, 7:15 pm

What's the correct code for a 'reset' button in a from?

I know how to use an image for 'send' (below.)

Is there one for 'reset'?


<input name="imageField" type="image" src="../assets/submit_button.gif"
width="54" height="22" border="0">

Thanks.

Osgood

2004-08-31, 7:15 pm

Osgood wrote:

> What's the correct code for a 'reset' button in a from?


that should say 'form' not 'from' just incase that is confusing. To the
bright and intelligent of course it wont be.



Osgood

2004-08-31, 7:15 pm

Humm..buggar on further investigation it looks like I will have to use
some fancy javascript.

In that case I don't think it is worth it in this case.


Osgood wrote:

> Osgood wrote:
>
>
>
> that should say 'form' not 'from' just incase that is confusing. To the
> bright and intelligent of course it wont be.
>
>
>


Osgood

2004-08-31, 7:15 pm

Mick White wrote:

> <img src="whatever" onclick="document['formName'].reset()">



Excellent. I think I can manage that. Thanks, I'll give it a whirl and
see what happens.

Osgood

2004-08-31, 7:15 pm

Osgood wrote:

> Mick White wrote:
>
>
>
>
> Excellent. I think I can manage that. Thanks, I'll give it a whirl and
> see what happens.
>


Great. That seems to work nicely in Mac 5.2/Safari and FireFox.

Opera 6 doesnt like it but I dont care much about that. Anyone using
that browser deserves to have to use a bit of manual dexterity.

I'll look at it in pc tomorrow.


Cheers.

Mick White

2004-08-31, 11:14 pm



Osgood wrote:

>
> Great. That seems to work nicely in Mac 5.2/Safari and FireFox.
>
> Opera 6 doesnt like it but I dont care much about that. Anyone using
> that browser deserves to have to use a bit of manual dexterity.
>


document.forms['formName'].reset()

This longer version should work in most UA's
Mick

> I'll look at it in pc tomorrow.
>
>
> Cheers.
>

Osgood

2004-08-31, 11:14 pm

Mick White wrote:

> This longer version should work in most UA's



Thanks Mick, much appreciated.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews