Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

FormReset Button Image

Is there a way to change the default grey button image generated out of FormReset to clear form fields and put my own reset image with that functionality?
0
rajmohans
Asked:
rajmohans
  • 4
  • 2
  • 2
1 Solution
 
GrdvCommented:
if the name of the form is FormReset use this:

<a href="javascript:FormReset.reset();"><img src="yourimage.gif" border=0></a>

//Grdv
0
 
martinagCommented:
It should be document.FormReset.reset()

Martin
0
 
GrdvCommented:
that's very true martin, thanks for pointing that out...
//Grdv
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
rajmohansAuthor Commented:
I've named the form as Form_Login in the attributes of FormOpen
and generating
<A HREF="Javascript:Document.Form_Login.reset();"><IMG SRC="/v2.0-img/SSB/SSB_reset.gif" border="0"></A>

Still it's giving error as

Document.Form_Login has no properties.

Can you explain, please.
0
 
martinagCommented:
Cases are important in most languages (the intellectual ones). There is a hige difference between these lines (since one won't work...):
Document.Form_Login // won't work
document.Form_Login // will work

Martin
0
 
rajmohansAuthor Commented:
I've named the form as Form_Login in the attributes of FormOpen
and generating
<A HREF="Javascript:Document.Form_Login.reset();"><IMG SRC="/v2.0-img/SSB/SSB_reset.gif" border="0"></A>

Still it's giving error as

Document.Form_Login has no properties.

Can you explain, please.
0
 
rajmohansAuthor Commented:
Thanks a lot Martin and Grdv! Great.
0
 
rajmohansAuthor Commented:
Thanks a lot Martin and Grdv! Great.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now