;<input type=image 
 onclick="this.form.reset();" src="images/cancel.jpg"  
 border=0>

解决方案 »

  1.   

    不行啊!我的全部代码是这样的:  
      <body>
     <br>
                                <TABLE cellSpacing=0 cellPadding=3 align=center border=0>
                              <TBODY><form name=login action="/dishuikaoqin/servlet/MainServlet" method="post">
                                <TR> 
                                  <TD class=pt9hui height=29>用户名:</TD>
                                  <TD height=29><INPUT class=pt9hui size=12 
    name="username"></TD>
                                </TR>
                                <TR> 
                                  <TD class=pt9hui height=28>密 码:</TD>
                                  <TD height=28><INPUT class=pt9hui size=12 
                  name="password" type=password></TD>
                                </TR>
                                <TR> 
                                  <TD colSpan=2 height=38> <DIV align=center><input type=image 
                      onclick=document.login.submit(); src="images/login03.jpg"  
                      border=0>&nbsp;<input type=image 
                      onclick=this.login.reset(); src="images/login04.jpg"  
                      border=0><INPUT class=pt9hui size=12 
                  name="pageflag" type="hidden" value="main"></DIV></TD>
                                </TR>
                              </form></TBODY>
                            </TABLE>
      </body>
      

  2.   


      <body>
     <br>
                                <TABLE cellSpacing=0 cellPadding=3 align=center border=0>
                              <TBODY><form name=login action="/dishuikaoqin/servlet/MainServlet" method="post">
                                <TR> 
                                  <TD class=pt9hui height=29>&Oacute;&Atilde;&raquo;§&Atilde;&ucirc;&pound;&ordm;</TD>
                                  <TD height=29><INPUT class=pt9hui size=12 
    name="username"></TD>
                                </TR>
                                <TR> 
                                  <TD class=pt9hui height=28>&Atilde;&Uuml;&iexcl;&iexcl;&Acirc;&euml;&pound;&ordm;</TD>
                                  <TD height=28><INPUT class=pt9hui size=12 
                  name="password" type=password></TD>
                                </TR>
                                <TR> 
                                  <TD colSpan=2 height=38> <DIV align=center><input type=image 
                      onclick=document.login.submit(); src="images/login03.jpg"  
                      border=0>&nbsp;<input type=image 
                      onclick="document.login.reset();return false;" src="images/login04.jpg"  
                      border=0><INPUT class=pt9hui size=12 
                  name="pageflag" type="hidden" value="main"></DIV></TD>
                                </TR>
                              </form></TBODY>
                            </TABLE>
      </body>