用reload方法吧. F5刷新不管用的.
<input type='checkbox' name='number' value=1>号码 
<input type='button' name='n1' value="号码" onclick="window.location.reload();"> 

解决方案 »

  1.   

    onbeforeunload中清除
    <html> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
    <title>无标题文档</title>  
    </head> 
    <body> 
    <script>window.onbeforeunload=function()
    {
      var inputs=document.getElementsByTagName("input");
      for(var i=0;i<inputs.length;i++)
      { 
        if(inputs[i].type=="checkbox"){ inputs[i].checked=false;continue;}
        if(inputs[i].type=="text") inputs[i].value='';
      }
    }
    </script>
    <input type="checkbox"/>
    <input type="text"/>
    </body> 
    </html>