`

IE 和Firefox下 Iframe 重新加载 reload

 
阅读更多

ie:document.frames['vCodeIFrame'].location.reload();

      window.frames['vCodeIFrame'].location.reload();

以上写法在firefox下面不行

 

以下写法:

document.getElementById('vCodeIFrame').contentWindow.location.reload();

在IE和firefox里都可以使用

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics