<iframe id="HtmlEdit" name="HtmlEdit" marginWidth="0" marginHeight="0" frameBorder="1" width="561" height="461" src="wqsytsph1.inc" ></iframe>wqsytsph1.inc里的内容是”1234556“
在JS中要怎么写才能得到?
还有,对iframe有如下代码:
editor=document.getElementById("HtmlEdit").contentWindow;
editor.document.designMode = "On";
editor.document.contentEditable = true;
editor.document.open();
editor.document.writeln();‘为了兼容FF只能这样写,所以我想得到wqsytsph1.inc的内容写进去达到和IE一样的效果
editor.document.close();
其实不加上面的代码是可以得到wqsytsph1.inc的内容的,加了ALERT就提示空白,请高手指点
在JS中要怎么写才能得到?
还有,对iframe有如下代码:
editor=document.getElementById("HtmlEdit").contentWindow;
editor.document.designMode = "On";
editor.document.contentEditable = true;
editor.document.open();
editor.document.writeln();‘为了兼容FF只能这样写,所以我想得到wqsytsph1.inc的内容写进去达到和IE一样的效果
editor.document.close();
其实不加上面的代码是可以得到wqsytsph1.inc的内容的,加了ALERT就提示空白,请高手指点
editor.document.writeln();‘为了兼容FF只能这样写,所以我想得到wqsytsph1.inc的内容写进去达到和IE一样的效果
editor.document.close(); 不太明白你的意思 把这3句删掉看看吧