我在页面上有一个iframe,来自第三方(广告).我想在点击iframe时发出点击事件(记录一些内部统计数据).就像是:
$('#iframe_id').click(function() {
//run function that records clicks
});
Run Code Online (Sandbox Code Playgroud)
..基于HTML:
<iframe id="iframe_id" src="http://something.com"></iframe>
Run Code Online (Sandbox Code Playgroud)
我似乎无法得到任何变化的工作.思考?