Javascript-iframe communication
Javascript-iframe communication
本文关键字:communication Javascript-iframe 更新时间:2023-09-26
脚本如下:
<script src="mysqite . com/1.js"></script>
它被放置在其他位置。它显示一个iframe。如果有人点击iframe上的东西,脚本应该写一个div到其他网站。com .
所以我的问题是如何做到这一点?
你有几种方法:
- 窗口。postMessage(仅支持html5的浏览器)
- 基于Flash的解决方案(不是很好,但100%适用于安装了Flash的系统)
- 改变iframe的哈希值(url#hash)(这是允许的),并检测其中的这些变化
相关文章:
- Ajax-PhP communication
- Apache Thrift Java-Javascript communication
- PHP, Java Applet communication
- Javascript and Java Communication
- Parent-Iframe postMessage communication
- Applet JavaScript Communication
- HTML5 Web Worker Communication
- JavaScript and SWF communication
- Communication Java to NodeJS?
- Communication JQuery and C#
- Javascript-iframe communication
- JS <---> PHP communication