2011-11-26 99 views

回答

0

您可以使用jQuery點擊一個鏈接時趕上,然後在內容加載到iframe中

$('iframe a[target="_blank"').live('click',function(e){ 
e.preventDefault(); //stops it opening in a new window 
var url = $(this).attr('href'); 
$('iframe').load(url); 
}); 
0
<a target="_parent">click</a> 
相關問題