<html>
<body>
<iframe id="ifr" src="1.html"></iframe>
</body>
<script type="text/javascript">
var editor = document.getElementById("ifr").contentWindow;
var editdoc = editor.document; editdoc.designMode = "On";
editdoc.contentEditable = true; // 这里注释掉和加上几乎没什么区别啊?
editdoc.open("text/html", "replace");
editdoc.write("<html><body></body></html>");
editdoc.close();
</script>
</html>还有就是有人说
editdoc.designMode = "On";
editdoc.contentEditable = true;
这两句浪费效率????只是网络上的人这么写的,完全可以注释掉???
附地址:http://www.the6cn.com/html/20090319/200903191823.htm