第一次点击后把按钮cancle掉
利用setTimeOut将它重现

解决方案 »

  1.   

    try:
    <button onclick="document.body.setCapture();window.frames['ifrm'].location.reload()">refresh</button>
    <iframe onload="document.body.releaseCapture()" name="ifrm"></iframe>
      

  2.   

    index.html
    <body>
    <iframe id=i1 src='test6.html'>
    </iframe>
    <input id=b1 type=button value="refresh" onclick="this.enabled = false;document.all.i1.contentWindow.location.reload(true);">
    </body>test6.html
    <body onload="window.parent.b1.enabled = true">
    iframe
    </body>
      

  3.   

    试了, kingdomzhf(旭日东升)的是可以的~
    还没有试阿信的~
      

  4.   

    to阿信:setCapture();只对IE6有效。
      

  5.   

    谢谢各位,kingdomzhf(旭日东升)的方法,我以前就是这么用的,但因为主页面里可点击的地方很多,不光有按钮还有链接,所以想把整个页面禁止掉,我想试试 fason(阿信)的方法。