Possible Duplicate:
Reload an iframe with jQuery
我怎样才能导致<iframe>
在点击事件上重新加载?
我尝试过这个,但它不起作用:
jQuery("#link").click(function(){
jQuery('#iframeID')[0].reload();
})
最佳答案
像这样
document.getElementById('iframeID').contentWindow.location.reload();
或通过
document.getElementById('iframeID').src = document.getElementById('iframeID').src;
关于javascript - 如何在点击时重新加载 iframe?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12686870/