iframe获取父、子窗口的方法
来源:互联网 发布:鲁大师是什么软件 编辑:程序博客网 时间:2024/05/18 22:11
转自:http://www.oschina.net/code/snippet_856191_24024
01 jquery、js调用iframe父窗口与子窗口元素的方法
02
03 1. jquery在iframe子页面获取父页面元素代码如下:
04
05 $("#objid",parent.document)
06
07
08 2. jquery在父页面获取iframe子页面的元素
09 代码如下:
10 $("#objid",document.frames('iframename').document)
11
12
13 3.js在iframe子页面获取父页面元素代码如下:
14
15 indow.parent.document.getElementByIdx_x("元素id");
16
17
18 4.js在父页面获取iframe子页面元素代码如下:
19
20 window.frames["iframe_ID"].document.getElementByIdx_x("元素id");
21
22
23 5.子类iframe内调用父类函数:
24
25 window.parent.func();
0 0
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- iframe获取父、子窗口的方法
- js,jquery获取父窗口,子窗口iframe的方法
- iframe获取父、子窗口元素的方法
- js与jquery获取父窗口、子窗口中iframe的方法
- 父窗口获取iframe子窗口window对象和document对象的方法
- iframe 父窗口和子窗口的调用方法
- iframe 父窗口和子窗口相互的调用方法
- iframe 父窗口和子窗口的调用方法
- iframe 父窗口和子窗口的调用方法
- iframe 父窗口和子窗口相互的调用方法
- 分区表例子备份
- C# B/S 使用域用户验证
- ActionBarSherlock与Fragment及ViewPager结合实现滑动切换页面
- UNDO相关问题总结(六)
- 项目PMO工作
- iframe获取父、子窗口的方法
- Joomla插件构造函数后门分析
- JavaBean中使用JDBC方式进行事务处理
- js 获取网页高度等信息
- eclipse中启动Tomcat7 server失败Caused by: java.lang.IllegalArgumentException: The servlets named...
- 怎样发高质量的外链
- hibernate事务并发机制
- box2d -ApplyForce, ApplyImpulse, SetLinearVelocity
- diacuzX】门户diy风格模版制作教程。