<input type=button onclick="window.location='about:blank'" value=test>

解决方案 »

  1.   

    http://www.csdn.net/expert/topic/713/713889.xml?temp=.4348719
      

  2.   

    <script language="VBScript">
      Sub idClearButton_onclick()
        document.body.innerText=""
      End Sub
    </script>之后你随便把个什么IMG、P、SPAN取ID叫做"idClearButton"就可以了。
      

  3.   

    To 秋水:直接用document.write('&nbsp;')就可以,为什么要先document.close();?
      

  4.   

    To  kitegirl(小仙妹):
    页面信息是清除了,但使用源文件还是能看到内容!