开发者

Catch onclick adsense event ?

I wan't to send an ajax request if the user clicked on adsense . But because adsense code is in iframe I can't find a way to catch the onclick event .. any ideas pl开发者_如何学Pythonz ??!


The simple answer is that you can't. Since adsense is likely on another domain, most access to the inside of the iframe is cut off. This is a cross-domain security feature built into all modern browsers. You may be able to catch the click event on the iframe (haven't personally tried before), but it's not going to tell you anything about the inside of the iframe.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜