• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Form Handling > Using Images as Submit Buttons

Using Images as Submit Buttons

To enhance the look of your form, you can use an image for the button that submits the form, rather than using the standard HTML button. You'll use JavaScript to control what happens after the user clicks the submit image (i.e., to submit the form). The script just requires the addition of a function to Script 8.1 and the definition of an image as the submit button, which gets done in an <a> tag. Script 8.2 tells the tale; Figure 8.3 shows you the result of the script.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint