1.

How Can I Make A Form With Custom Buttons?

Answer»

Rather than a normal submit button (<input type="submit" ...>), you can use the image input type (<input type="image" ...>). The image input type specifies a graphical submit button that functions like a server-side image MAP

Unlike normal submit buttons (which return a NAME=VALUE pair), the image input type returns the x-y coordinates of the location where the user clicked on the image. The browser returns the x-y coordinates as name.x=000 and name.y=000 pairs. 

ronments, the VALUE and ALT attributes should be set to the same value as the NAME attribute. For example: 

<input type="image" name="Send" alt="Send" value="Send" src="send-button.gif"> 
For the reset button, one could use <button type="reset" ...>, JavaScript, and/or STYLE sheets, ALTHOUGH none of these mechanisms work universally.

Rather than a normal submit button (<input type="submit" ...>), you can use the image input type (<input type="image" ...>). The image input type specifies a graphical submit button that functions like a server-side image map. 

Unlike normal submit buttons (which return a name=value pair), the image input type returns the x-y coordinates of the location where the user clicked on the image. The browser returns the x-y coordinates as name.x=000 and name.y=000 pairs. 

ronments, the VALUE and ALT attributes should be set to the same value as the NAME attribute. For example: 

<input type="image" name="Send" alt="Send" value="Send" src="send-button.gif"> 
For the reset button, one could use <button type="reset" ...>, JavaScript, and/or style sheets, although none of these mechanisms work universally.



Discussion

No Comment Found