iframe获取父、子窗口的方法
来源:互联网 发布:如何美化java做的界面 编辑:程序博客网 时间:2024/05/24 23:11
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();
转自:http://blog.csdn.net/yangbobo1992/article/details/8465484
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 父窗口和子窗口相互的调用方法
- NLTK使用中NameError: name 'FreqDist' is not defined问题解决
- 折半查找
- OC基础-NSValue类簇-将复杂数据类型保存为对象
- leetcode-First Bad Version
- sizeof的应用
- iframe获取父、子窗口的方法
- 透明Textbox的简单实现!
- android中使用隐藏类的方法
- maven POM.xml 开发配置标签详解
- 算法导论12.1什么是二叉搜索树 练习总结
- 抽象类
- discuzX2.5 源码模板简介
- js实现图片上传预览
- LeetCode-Move Zeroes