George World

技术改变明天,创新塑造未来! i(at)huadev.com Follow Me: http://t.sina.com.cn/georgeworld

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  28 随笔 :: 0 文章 :: 5 评论 :: 0 Trackbacks

框架结构:

<frameset rows="127,*,11" frameborder="no" border="0" framespacing="0">
  <frame src="top.action" name="topFrame" scrolling="no" noresize="noresize" id="topFrame" />
  <frame src="center.action" name="mainFrame" id="mainFrame" scrolling="auto" />
  <frame src="down.action" name="bottomFrame" scrolling="no" noresize="noresize" id="bottomFrame" />
</frameset>
<noframes>

 

当前位于框架页:top.action

需要被调用的JavaScript函数【funcA()】位于框架页:center.action

实现方法:

在top.action内:window.parent.window.frames['mainFrame'].funcA();

posted on 2010-04-27 16:27 George-tech 阅读(1321) 评论(1)  编辑  收藏 所属分类: Web.Design.JavaScript

评论

# re: 从一个子框架页面调用另一个子框架页面内的JavaScript函数 2014-04-28 19:54 收到
阿萨德发  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: