【发布时间】:2014-09-11 14:00:17
【问题描述】:
如何刷新每个 iframe onclick?谢谢! 这是我的js:
function Reload()
{
$("#load").each(function()
{
if($(this).is(':visible'))
$(this).attr('src', $(this).attr('src'));
});
}
我的 iframe:
<iframe src="SALES/add.php" id="load" width="100%" height="670px" frameborder="1" margin="0" padding="0" scrolling="yes">
</iframe>
【问题讨论】:
-
您的 iframe 是否有重复的 ID。 ID 应该是唯一的。
-
你可以试试这个,应该可以的。 stackoverflow.com/questions/2064850/…
标签: javascript jquery html iframe