<!--  //注释不对
 function rewrite()
{
  self.location="register.htm";
}
//-->

解决方案 »

  1.   

    register.htm有沒有這個啊,
    我試了我的行,不過把這些都去了</body>
    </html></head>
    <body>
    <html>
    <head>
    <
    >
      

  2.   

    <html>
    <head>
    <script language=Javascript> function rewrite()
    {
      self.location="register.htm";
    }</script>
    </head>
    <body>
    <form method=post action=register.asp>
    <input type=text name=>
    <input type=radio>计算机
    <input type=checkbox>数学
    <input type=button value=重填 Onclick="rewrite()">
    </body>
    </html>
      

  3.   

    <html>
    <head>
    <script language=Javascript>
    <
     function rewrite()
    {
      self.location="register.htm";
    }
    >
    </script>
    </head>
    <body>
    <form method=post action=register.asp>
    <input type=text name=>
    <input type=radio>计算机
    <input type=checkbox>数学
    <input type="reset" value="重填">
    </body>
    </html>
    这样就OK了!
      

  4.   

    <
    改成
    <!-->
    改成
    //--->如
    <script language=Javascript>
    <!--
     function rewrite()
    {
      self.location="register.htm";
    }
    >
    </script>如果只是想重填<html>
    <head>
    </head>
    <body>
    <form method=post action=register.asp>
    <input type=text name=>
    <input type=radio>计算机
    <input type=checkbox>数学
    <input type=button value=重填 Onclick="reset()">
    </body>
    </html>