HTML Forms :
RESET BUTTON








When a visitor clicks a reset button, the entries are reset to the default values.





SETTINGS:

Below is a listing of valid settings for reset buttons:


HTMLEXPLANATIONEXAMPLE
reset
  name=
  value=
  align=
  tabindex=

Reset button
Name of the button.
Text written on the button.
Alignment of the button.
Tab order of the button.




The name setting adds an internal name to the button so the program that handles the form doesn't confuse the button with the other fields.

The value setting defines what is written on the button.

The align setting defines how the button is aligned.
Valid entries are: TOP, MIDDLE, BOTTOM, RIGHT, LEFT, TEXTTOP, BASELINE, ABSMIDDLE, ABSBOTTOM.
The alignments are explained in the image section.
You can learn about the different alignments here.

The tabindex setting defines in which order the different fields should be activated when the visitor clicks the tab key.




AN EXAMPLE:

Look at this HTML example:
<html>
<head>
<title>My Page</title>
</head>
<body>
<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="center">
<br><br>
<input type="text" size="25" value="Enter your name here!">
<br><input type="submit" value="Send me your name!"> <input type="reset" value="Reset!"><br>
</div>
</form>
</body>
</html>


And the resulting output from it:






 << PREVIOUS
READ MORE >>  
















DEVELOPER TIP!





     "Better Than Books - As Easy As It Gets!"