js获取框架(IFrame)的内容

 

<frameset id="fr" rows="50%,50%">
      <frame name="up" id="up" src="u.html"/>
      <frame name="down" id="down" src="d.html"/>
</frame>

  var objValue=window.parent.frames["down"].document.getElementById("456");
  alert(objValue.value);

posted @ 2014-10-17 14:18  咕-咚  阅读(668)  评论(1)    收藏  举报