:: 首页 :: 新随笔 ::  :: 聚合  :: 管理

js代码收集

Posted on 2012-11-03 15:40 谁用我名字啦? 阅读(183) 评论(0)  编辑  收藏 所属分类: JQuery
1.获取或设置子页面的元素
当前页面有id为'centerIFrameRight'的iframe标签引用了一个子页面,在子页面中有id为'dataFrame'的frameset标签,设置dataFrame的rows参数
document.getElementById("centerIFrameRight").contentWindow.document.getElementById("dataFrame").rows = "0,*";

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


网站导航: