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);

原文地址:https://www.cnblogs.com/mc67/p/4031024.html