2016-10-12 37 views

回答

0

如果我理解了你,你想顯示一個不在iframe內的按鈕,對不對?

在這種情況下,試試這個:

$(function(){ 
    var f=$('#foo') 
    f.load(function(){ 
     f.contents().find("#element").on('click', function(event) { 
      newfunction(); 
     }); 
    }) 
}) 
function newfunction() { 
    $("#button").show(); 
} 

的#element是iframe內提交按鈕。

#button是您想要在iframe下面顯示的按鈕。只需將ID更改爲您自己的ID。

相關問題