954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Changing the default "submit" button.

Hello,
I have been modifying my companys web site and I have a question about Forms. On my site you can buy products and the "Add to cart" button is the default grey buttons. I would like to change these default buttons to a more colorful button that I have seen on other sites. Can anyone give me some ideas on how to do this or where i can go to learn how to change these buttons?
TIA!

Erik Schrank

Drkhrs620
Newbie Poster
1 post since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

Make any link, image, button, or other "widget" a submit button by simply attaching JavaScript to it.

For example, a hyperlink can be:

Submit me!

The key is that the form has a "submit" method, that you can call from almost anywhere.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

By Calling Javascript function, how to post the form to another page or how will action tag work by calling the javascript function.

reply to me at 'yk123in@yahoo.co.in'

yogesh_sind
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

javscript is so passe, so blockable, so insecure -=resides on the user browser

input.submit {background: bla bla bla; color: bla bla bla; width:bla; height;bla; /* any other css bla bla bla */ }
input.submit:hover {background: otherbla bla bla; color: otherbla bla bla; width:bla; height;bla}
input.submit:active {background: otherotherbla bla bla; color: otherotherbla bla bla; width:bla; height;bla}
input.submit:focus {background: otherbla bla bla; color: otherbla bla bla; width:bla+10; height;bla+5}[
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

You can put use the tag around an image.

<BUTTON TYPE=SUBMIT>
     <IMG SRC="/this/leads/to/your/button/image/!!" HEIGHT="97" WIDTH="105" ALT="Starflower" ALIGN="ABSMIDDLE"><STRONG>Keep this blank or not...</STRONG></BUTTON>


Difference Between the Tag and Tag:
At first glance, it may appear that there's not much difference between using the tag and tag. But there are some differences.

The main difference is that the tag allows you to place HTML code in between the opening and closing tags. The tag is an empty tag (i.e. it doesn't have a closing tag), so you can't add content to the tag.

Another key difference between the two tags is with the value attribute. The tag uses this attribute to display a label on the button (e.g. "Click me!"). With the tag, on the other hand, the value attribute is submitted along with any form contents and can be used for processing. http://www.quackit.com/html/codes/html_button.cfm

djextreme5
Junior Poster
104 posts since Mar 2009
Reputation Points: 76
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You