ITeye博客

IE 和Firefox下 Iframe 重新加载 reload

lkf009 · 2013-07-24 10:34 · 浏览器兼容 · Web前端 · Markdown

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

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

以上写法在firefox下面不行

 

以下写法:

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

在IE和firefox里都可以使用

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。