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

Chapter 11. Forms >  Resetting the Form

Resetting the Form

If humans could fill out forms perfectly on the first try, there would be no erasers on pencils and no backspace key on your computer keyboard. You can give your visitors a reset button so that they can start over with a fresh form (including all the default values you've set).

To create a reset button:

1.
Type < INPUT TYPE="reset".

2.
If desired, typeVALUE="reset message" where reset message is the text that appears in the button. The default reset message is Reset.

3.
Type >.

Tip

The name-value pair for the reset button is only sent to the script if you set the NAME attribute. Therefore, if you omit the NAME attribute, you won't have to deal with the completely superfluous reset data—which is usually something like "reset, Reset".


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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