原文:window.parent与window.opener、window.showModalDialog的区别 opener和showModalDialog刷新父页面的方法

: window.parent 是iframe页面调用父页面对象 a.html 如果我们需要在b.htm中要对a.htm中的username文本框赋值,就如很多上传功能,上传功能页在Ifrmae中,上传成功后把上传后的路径放入父页面的文本框中我们应该在b.html中写 实例源码: .a.html .b.html ps:不能跨域获取,例如iframe的src是 http: www.xxx.ccc ...

2012-07-29 19:35 0 7974 推荐指数:

查看详情

(转)window.opener方法的使用 刷新页面

原文博客:https://blog.csdn.net/xumingqing171/article/details/51897224 刷新打开(window.open)此窗口的窗口window.opener.location.href = 'http://www.baidu.com ...

Tue Jan 22 00:28:00 CST 2019 0 1134
window.opener()方法

(){ myWindow=window.open('','','width=200,height=100'); ...

Fri Dec 29 17:20:00 CST 2017 0 1114
window.open()与window.showModalDialog区别

window.open()与window.showModalDialog区别 弹出窗口两种方式: 1.window.showModalDialog: var feature = "dialogWidth:615px;dialogHeight:505px ...

Sun Apr 20 23:46:00 CST 2014 0 5829
window.showModalDialog用法

今天把window.showModalDialog用法记录一下,下面说的窗口和子窗口之间传值的问题 js代码片段:这是一个js的function 1. str 字符串只是拼接了指定窗口位置的参数2. window.showModalDialog ...

Sun Nov 11 19:06:00 CST 2012 4 28578
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM