开发者

Can I inspect user go to some address he go to some website via the iframe?

开发者 https://www.devze.com 2023-03-29 19:51 出处:网络
For example, I have a iFrame, which the src is www.google.com, when people go to apple.com via the iframe, I would like to prompt a message to the user. How can I achieve it?

For example, I have a iFrame, which the src is www.google.com, when people go to apple.com via the iframe, I would like to prompt a message to the user. How can I achieve it?

Can I have some kind of listener to listen to the iFrame current address 开发者_运维知识库using jQuery?


The same origin policy will prevent you from doing that.

reference: http://en.wikipedia.org/wiki/Same_origin_policy

0

精彩评论

暂无评论...
验证码 换一张
取 消