<iframe src="xxxx.htm" id="a" name="a"></iframe><script language="javascript" type="text/javascript">
frames.a.document.designMode="On";
</script>

解决方案 »

  1.   

    关键是当然我这个iframe是JS生成的,生成代码是:
    function Editor(content){
    document.write('<iframe name="wrEditor" id="wrEditor" runat="server" width="900" height="400" src="about:blank"></iframe>');
    oEditor = document.wrEditor;
    var strHtml = '<html><head><style>body{font-size:14px;line-height: 20px; margin:2px;}\ntd, a{color:#0000FF; font-size:14px;}</style>';
    strHtml += '<script language="javascript" src="E:\\my project/PermanentAssets/setday.js"></script>';
    strHtml += '</head><body>'+content+'</body></html>';
    oEditor.document.open();
    oEditor.document.write(strHtml);
    oEditor.document.close(); oEditor.document.designMode="On";
    oEditor.focus();
    }也就是说已经有了一个iframe了,只要把iframe中的内容改成要显示的页面就可以了
      

  2.   

    问题已经解决了,谢谢nicholsky 的关注