码迷,mamicode.com
首页 > Web开发 > 详细

js获取框架(IFrame)的内容

时间:2014-10-17 15:00:28      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:ar   sp   html   bs   htm   window   js   框架   nbsp   

 

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

js获取框架(IFrame)的内容

标签:ar   sp   html   bs   htm   window   js   框架   nbsp   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!