获取iframe中body内容
test-id是iframe的ID
javascript">window.frames['test-id'].contentWindow.document.body.innerHTML
//简单示例,在加入富文本编辑器的页面中获取中id为 ueditor_0 的 iframe 标签中 body 的内容
<input type="button" value="获取" onclick="alert(window.frames['ueditor_0'].contentWindow.document.body.innerHTML)">
//一个测试地址:http://ueditor.baidu.com/website/onlinedemo.html
//将上述第5行代码复制到编辑页面HTML的一个可见位置即可