Using a Reset Button : Form Button « JSP « Java Tutorial






<HTML>
    <HEAD>
        <TITLE>Using a Reset Button</TITLE>
    </HEAD>
 
    <BODY>
        <H1>Using a Reset Button</H1>
        <FORM ACTION="yourJSP.jsp" METHOD="POST">
            Please enter your name:
            <INPUT TYPE="TEXT" NAME="text1">
            <BR>
            <INPUT TYPE="SUBMIT" value="Submit">
            <INPUT TYPE="RESET" value="Reset">
        </FORM>
    </BODY>
<HTML>








23.16.Form Button
23.16.1.Using Form Button
23.16.2.Handle Form Button Action
23.16.3.Get Form Button Value
23.16.4.Using a Reset Button