2012年7月18日
摘要: 1、window.parent 是iframe页面调用父页面对象举例: a.htmlA如果我们需要在b.html中要对a.html中的username文本框赋值(就如很多上传功能,上传功能页在ifrmae中,上传成功后把上传后的路径放入父页面的文本框中),我们应该在b.html中写:var _parentWin = window.parent;_parentWin.form1.username.value = "xxxx";Z-Blog的文章编辑页面上传功能就是这么实现的。2、window.opener 是 window.open 打开的子页面调用父页面对象opener:对 阅读全文
posted @ 2012-07-18 14:27 cw_volcano 阅读(173) 评论(0) 推荐(0) 编辑