uuI'm试图检测iframe中的点击事件。我已经找到了一些(不工作)的解决方案,我无法修复它们并让它们处理我的代码。Prettyphoto和事件点击iframe
如何检测内嵌iframe的点击事件的目标?
由于PrettyPhoto简单地由
$("a[rel^='prettyPhoto']").prettyPhoto();
装,我希望到
$("a[rel^='prettyPhoto']").prettyPhoto(
$('#myframe').bind('click', function(event) {
alert("cliked");
})
);
类似的解决方案,但是,这并不工作。任何想法?
这不工作...我已经尝试过现场( ),on(),bind(),它们都不起作用 – Yuri 2013-03-04 10:56:44