1. JavaScript can use the following methods to refresh an iframe:
document.getElementById('some_frame_id').contentWindow.location.reload();
Example:
<iframe id="myframe" width="100%" frameBorder="0" src="../index.html"no"></iframe>
<input type="button" onclick="javascript:refreshFrame();" value="Refresh Frame" />
<script type="text/javascript">
<!--
function refreshFrame(){
document.getElementById('myframe').contentWindow.location.reload(true);
}
//-->
</script>
2. jQuery can use the following methods to refresh an iframe:
$('#iframe').attr('src', $('#iframe').attr('src'));