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