【发布时间】:2009-12-10 06:17:07
【问题描述】:
我有 id="iView" 和 designMode = on 的 iframe。
我的代码:
var iframeWindow = document.getElementById('iView').contentWindow.document;
var range = iframeWindow.getSelection().getRangeAt(0);
我得到的错误:
Microsoft JScript 运行时错误: 对象不支持此属性 或方法
我也尝试了来自
how to get selected text from iframe with javascript?
【问题讨论】:
标签: javascript