Can I inspect user go to some address he go to some website via the iframe?
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
精彩评论