iframe获取父、子窗口的方法
来源:互联网 发布:淘宝站内推广有哪些 编辑:程序博客网 时间:2024/05/18 22:53
jQuery、js调用iframe父窗口与子窗口元素的方法
1. jquery在iframe子页面获取父页面元素代码如下:
$("#objid",parent.document)
2.
代码如下:
$("#objid",document.frames('iframename').document)
3.js在iframe子页面获取父页面元素代码如下:
indow.parent.document.getElementByIdx_x("元素id");
4.js在父页面获取iframe子页面元素代码如下:
window.frames["iframe_ID"].document.getElementByIdx_x("元素id");
5.子类iframe内调用父类函数:
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 父窗口和子窗口相互的调用方法
- MySQL 中NULL和空值的区别
- 成功解决方案cannot resolve symbol window
- Orchid poll 剖析
- 什么是真的学习能力
- PLSQL Recursion DB
- iframe获取父、子窗口的方法
- maven+hudson+git持续集成
- javascript-MDN笔记-函数
- IO复用之epoll
- Python(Pygame)字体设置
- Jenkins+Maven+Git搭建持续集成和自动化部署的配置手记
- Jquery和javascript在使用上的区别
- 【GDOI 2014】beyond
- LeetCode 523. Continuous Subarray Sum 解题报告