备忘录

记录点滴技术

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 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;

 

原文地址:http://hi.baidu.com/aji88/blog/item/39adca821e9cb596f703a63b.html

posted on 2011-11-08 16:11  goding  阅读(206)  评论(0编辑  收藏  举报