2016-07-14 68 views

回答

0

在您onclick處理程序只是:

document.getElementById("iframe_id").contentWindow.location.reload(); 

document.getElementById("iframe_id").src = document.getElementById("iframe_id").src 
0

試試這個:

onClick='document.getElementById("ifr").src="add_dossier.php";' 

$(function(){ 
    $('#button').click(function(){ 
     if(!$('#iframe').length) { 
       $('#iframeHolder').html('<iframe id="iframe" src="http://google.com" width="700" height="450"></iframe>'); 
     } 
    }); 
}); 
相關問題