在父窗口调用iframe里面的函数(各浏览器兼容)
来源:互联网 发布:怎么样盗用别人软件 编辑:程序博客网 时间:2024/05/04 15:42
I struggled with this problem for a while and finally found a rocksolid solution through a posting by Bobince in Stackoverflow (here):
Instead of searching the function from the parent side, it is much saver and more predictable to hand over a function object from the IFrame side. This also makes it very easy to check if the IFrame function has already loaded. It works like a charm in Chrome, FF, IE 9, 8 and even 7.
Here is an example:
TESTouter.html
Copy code
TESTinner.html
Copy code
Cheers, Jörg.
来自Calling Function inside an iFrame
- 在父窗口调用iframe里面的函数(各浏览器兼容)
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- iframe里面的页面调用父窗口,左右窗口js函数的方法
- 在iframe中用jquery调用父窗口html的函数
- javascript中iframe里面的页面调用父窗口js函数的方法。
- javascript中iframe里面的页面调用父窗口js函数的方法
- iframe页面调用父窗口,左右窗口函数的方法
- iframe页面调用父窗口,左右窗口函数的方法
- 怎样在一个Iframe里面打开一个层使它占满整个浏览器的窗口
- 访问iframe里面的javascript函数、对象,兼容IE、Firefox
- 访问iframe里面的javascript函数、对象,兼容IE、Firefox
- 關於對BIEE項目的測試
- 产生进程死锁的原因是什么?如何接触死锁?
- 信号量IPC
- 学习马云做事业
- ICADL2012- A Scalable, Adaptive, Self-management and Fault-tolerant Architecture for Digital Library
- 在父窗口调用iframe里面的函数(各浏览器兼容)
- Oracle 11g 第二章知识点总结——过滤 排序
- C++问题
- 模板的两次编译
- 局部变量、全局变量、堆、堆栈、静态和全局
- 大端模式 小端模式
- 关于青春
- 条款20:宁以pass by refrence to const 替换 pass by value
- android的屏幕适配问题