IE:document.frames("Iframe_ID");
FF: document.frames("Iframe_ID") : document.getElementById("ifr_1").contentWindow;
IE和FF都兼容的方法:
var ifr = document.frames ? document.frames("ifr_1") : document.getElementById("ifr_1").contentWindow;
IE:document.frames("Iframe_ID");
FF: document.frames("Iframe_ID") : document.getElementById("ifr_1").contentWindow;
IE和FF都兼容的方法:
var ifr = document.frames ? document.frames("ifr_1") : document.getElementById("ifr_1").contentWindow;
转载于:https://www.cnblogs.com/aji88/archive/2010/03/25/1694783.html