<input type=button value=剪切     onclick="document.execCommand('Cut')">
<input type=button value=拷贝     onclick="document.execCommand('Copy')">
<input type=button value=粘贴     onclick="document.execCommand('Paste')">
<INPUT type=button value=打印     onclick="document.execCommand('Print')">
<input type=button value=全选     onclick="document.execCommand('SelectAll')">
<input type=button value=撤消     onclick="document.execCommand('Undo')">
<input type=button value=删除     onclick="document.execCommand('Delete')">
<input type=button value=黑体     onclick="document.execCommand('Bold')">
<input type=button value=斜体     onclick="document.execCommand('Italic')">
<input type=button value=下划线   onclick="document.execCommand('Underline')">
<input type=button value=停止     onclick="document.execCommand('stop')">
<input type=button value=保存     onclick="document.execCommand('SaveAs')">
<input type=button value=另存为   onclick="document.execCommand('Saveas',false,'c:\\test.htm')">
<input type=button value=字体     onclick="document.execCommand('FontName',false,fn)">
<input type=button value=字体大小 onclick="document.execCommand('FontSize',false,fs)">
<input type=button value=刷新     onclick="document.execCommand('refresh',false,0)">
<input type=button value=刷新 onclick="window.location.reload()">
<input type=button value=前进 onclick="window.history.go(1)">
<input type=button value=后退 onclick="window.history.go(-1)">
<input type=button value=前进 onclick="window.history.forward()">
<input type=button value=后退 onclick="window.history.back()">

解决方案 »

  1.   

    history.back()        : Loads a previous URL from the History list.  
    history.forward ()    : Loads the next URL from the History list.   
    location.reload()     :Reloads the current page.停止还没想到
      

  2.   

    不知停止能不能用document.close()来代替
      

  3.   

    <input type=button value=停止 onclick="window.location.stop()">
      

  4.   

    我的意思不是把窗口关闭。我是这样理解的,当浏览器在装入页面是会根据设置启用缓存来保存页面。使用document.close()方法会促使缓存结束,把目前缓存中的内容显示在当前窗口,以达到停止目的。
      

  5.   

    <input type=button value=停止     onclick="document.execCommand('stop')">
      

  6.   

    回复人: meizz(梅花雪) ( ) 信誉:694  2004-3-16 11:21:13  得分: 0  
     
        
    <input type=button value=停止 onclick="window.location.stop()">
    MSDN 上LOCATION 没有 STOP 吧
    另外 onclick="document.execCommand('stop')" 据MSDN 的解释现在还不支持,所以我说“现在就不能 STOP !!”
     
     
      

  7.   

    我说的是IE,俺的MSDN 是2003