---
title: "IE 和Firefox下 Iframe 重新加载 reload"
author: "lkf009"
date: "2013-07-24T10:34:09Z"
tags: []
categories: ["Web前端"]
slug: "ie-firefox-iframe-reload"
draft: false
lastmod: "2013-07-24T10:34:09Z"
id: 1912530
url: "https://lkf009.iteye.com/blog/1912530"
---

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

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

以上写法在firefox下面不行

 

以下写法：

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

在IE和firefox里都可以使用