<iframe name="ifm" src="/comment ....

解决方案 »

  1.   

    top.ifm.contentWindow.document.body.innerHTML 这个contentWindow好象很有问题.去掉试试.
      

  2.   


    function test(){
    var ifrm = document.getElementById('ifm');
    var doc = (ifrm.contentWindow || ifrm.contentDocument);
        if (doc.document) { doc = doc.document;}
    doc.body.innerHTML = "Hello";
    }setTimeout("test()",1);
      

  3.   

    谢谢了。我改为不在IFRAME里面用PHP输出文字了。不过还是谢谢各位了。有时间会试试你们说的方法的。