首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

获取iframe里变量或步骤

2012-09-07 
获取iframe里变量或方法ie&firefoxdocument.getElementById(frameId).contentWindow.varNamedocument.g

获取iframe里变量或方法
ie&firefox 
      document.getElementById("frameId").contentWindow.varName;
      document.getElementById(" frameId ").contentWindow.functionName();
      document.getElementById(" frameId ").contentWindow.document.getElementById("someId");
      $("# frameId ").contents().find("# someId ");

  ie 
      document.frames(" frameId ").window.document.getElementById(" someId ");

  firefox 
      document.getElementById(" frameId ").contentDocument.getElementById(" someId ");

热点排行