Solved

FormReset Button Image

Posted on 1998-11-06
8
268 Views
Last Modified: 2012-05-04
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
Comment
Question by:rajmohans
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 2

Accepted Solution

by:
Grdv earned 100 total points
ID: 1839415
if the name of the form is FormReset use this:

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

//Grdv
0
 
LVL 4

Expert Comment

by:martinag
ID: 1839416
It should be document.FormReset.reset()

Martin
0
 
LVL 2

Expert Comment

by:Grdv
ID: 1839417
that's very true martin, thanks for pointing that out...
//Grdv
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rajmohans
ID: 1839418
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
 
LVL 4

Expert Comment

by:martinag
ID: 1839419
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
 

Author Comment

by:rajmohans
ID: 1839420
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
 

Author Comment

by:rajmohans
ID: 1839421
Thanks a lot Martin and Grdv! Great.
0
 

Author Comment

by:rajmohans
ID: 1839422
Thanks a lot Martin and Grdv! Great.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question