<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <mce:script language="javascript" type="text/javascript"><!-- function insert(){ var theDoc = document.getElementById('fr1').contentWindow; //theDoc.style.display = "block"; //theDoc.document.open(); //会自动打开 //theDoc.document.designMode = "on"; //会自动打开 theDoc.document.write('<html><head>'); //theDoc.document.write('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">'); theDoc.document.write('</head><body width="100%" contentEditable=true style="padding:0;margin:0; overflow:hidden;" mce_style="padding:0;margin:0; overflow:hidden;">'); theDoc.document.write("lfasjdfkjalsejioruw fskdjfla;sjdkjfsahgasjdla;kjeioujrfhfaksdjfjal;skdjfhgsadlkfjla"); theDoc.document.write('</body></html>'); theDoc.document.body.contentEditable="false"; //要显示关闭可以编辑状态,不然内容是可以编辑的 //theDoc.document.designMode = "off"; //没用 //theDoc.document.close(); } // --></mce:script> </head> <body> <input type="button" value="insert" onclick="insert();" /> <iframe id="fr1" width="200" height="200" ></iframe> </body> </html>
原文地址:http://blog.csdn.net/ikmb/article/details/5973383
相关推荐
动态创建iframe,并动态添加js代码动态创建iframe,并动态添加js代码
jquery iframe动态添加tab选项卡 jquery iframe动态添加tab选项卡 jquery iframe动态添加tab选项卡 jquery iframe动态添加tab选项卡 jquery iframe动态添加tab选项卡 jquery iframe动态添加tab选项卡 jquery iframe...
用iframe提交表单,主要是将表单提交到iframe中,可实现无刷新提交。 html页面: <iframe name="FORMSUBMIT" width="1" height="1" ></iframe> ...
NULL 博文链接:https://gjp014.iteye.com/blog/2001946
js 实现 动态添加iframe框架! 值得下载看看!资源免费,大家分享!!
自己改写的js弹出div层模拟alert 可以自定义样式 在iframe框架中使用 避免了覆盖层只覆盖子页面的问题
iframe调用加loading特效特别合适远程调用速度慢而等待问题,简单方便
主要介绍了在vue中实现嵌套页面(iframe),具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
框架完美解决了iframe之间的跨域通讯。底层技术采用window.name转换代理实现
vue给页面添加水印,或者给iframe添加水印
改造过的AdminLTE bootstrap前端框架,添加了iframe标签功能。
多个iframe,显示其中一个frame中的div,并处于最上层显示 并且页面中的填写的值,可以传到弹出的div页面中 最近一段时间在做这个东西,给大家分享一下 附带测试代码 js弹出div层
BS页面实现Skyline平台下使用...实现popup内嵌html页面(标注输入界面),点击保存后更改标注图像,添加标注名称在鼠标悬浮在图像标注上显示名称的效果(最好把文件发布在iis上,要不然会在popup中弹出安全警告!)
iframe在复合文档中经常用到,利用jquery操作iframe可以大幅提高效率,这里收集一些基本操作,需要的朋友可以参考下
jquery iframe tab实例 jquery iframe tab实例 jquery iframe tab实例 jquery iframe tab实例 可实现动态添加或删除tab页
主要介绍了JS动态添加iframe的代码,需要的朋友可以参考下
1、为ScriptManager添加脚本引用,不从ScriptResource.axd中加载MicrosoftAjax.js脚本,而是直接加载 ~/ScriptLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js" /> 2、修改MicrosoftAjax....
NULL 博文链接:https://guoliangheyuqin.iteye.com/blog/1664562
在项目中经常要动态添加iframe,然后再对添加的iframe进行相关操作,而往往iframe还没添加完呢,后边的代码就已经执行完了,所以有些你写的东西根本没有显示出来。这时,我们就要考虑是否可以等iframe加载完后再执行...
可以添加到 iframe 之上的叠加层,以控制如何将用户事件传播到 iframe。 这个怎么运作 事件由覆盖 iframe 的覆盖层捕获。 这些事件通过 postMessage 使用 Poster 转发到 iframe,然后使用 EventSim 在 iframe 内...