ewebeditor如何实时获取iframe中内容(类似onchange功能)?

qq_40608204 2019-05-05 06:51:22
<INPUT type="hidden" name="content1" value="<%=html%>">
<IFRAME ID="eWebEditor1" src="./eWebeditor55/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="550" height="350" ></IFRAME>
程序在提交时才知道其提交内容。我现在想在提交前,检查当前输入内容是否与题库中内容重复,以前表单有onchange功能,结合js和ajax可以实现。在网上搜索,window.frames("eWebEditor1").window.frames("eWebEditor").document.getElementsByTagName("body")[0].innerhtml可以获得其内容,但不能实时获得,只能再设置一个按钮才能获得,如果有onchange类似功能的话,就方便了。
哪位大师帮帮忙?
...全文
23 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧