window.opener.location.reload() 弹出窗口关闭时用来刷新父窗 口
来源:互联网 发布:手绘照片软件叫什么 编辑:程序博客网 时间:2024/05/21 17:46
window.opener.location.reload()与
window.opener.location.href=window.opener.location.href
都是弹出窗口关闭时用来刷新父窗 口。但window.location.Reload 如果有数据提交的动作,会提示是否提交的(是和否选项)
window.opener.location.href=window.opener.location.href 是定向url提交数据,则不会出现是和否的选择框。
注意: window.opener.location.href 只是一个链接,如果想实现父窗口的提交就要调用window.opener.action="" 和window.opener.submit();方法,但是不幸的是这段代码在firefox下不能运行,解决的办法为在父窗口中写一个提交的 function在子窗口中通过window.opener.functionname()调用。
通常在使用window.opener的时候要去判断父窗口的状态,如果父窗口被关闭或者更新,就会出错,解决办法是加上如下的验证 if(window.opener && !window.opener.closed)
- window.opener.location.reload() 弹出窗口关闭时用来刷新父窗 口
- window.opener.location.reload() and href()的区别 弹出页修改后刷新父窗体
- window.opener.location.reload() and href()的区别 弹出页修改后刷新父窗体 .
- window.opener.location.reload() and href()的区别 弹出页修改后刷新父窗体
- js刷新;window.location.reload;窗口刷新
- JavaScript window.opener.location.reload
- window.location.reload;刷新
- window.location.reload;刷新
- window.opener.location.reload()的使用
- window.location.reload() 刷新页面时,如何不弹出提示框
- window.location.reload() 刷新页面时,如何不弹出提示框
- 关于opener.location.reload()
- window.opener.location.reload() and href的区别
- (转)window.opener.location.reload() and href的区别
- window.opener.location.reload() and href的区别
- (window,parent,opener,top).location.reload方法汇总
- window.opener.location.reload() and href()的区别
- (window,parent,opener,top).location.reload方法汇总
- UVa10249 - The Grand Dinner(为什么超时)
- STM32通用定时器TIM2、3、4
- c++ regex第三方库 当然现在c++11也支持regex
- "crontab" 间隔固定时间执行
- hdu 1864 DP
- window.opener.location.reload() 弹出窗口关闭时用来刷新父窗 口
- 自己动手写操作系统--搭建保护模式下的运行环境:bochs下安装freedos
- Linux tar打包命令
- Valid signing identity not found解决办法(原有IDP私钥丢失)
- shell环境变量以及set,env,export的区别
- 临界区(Critical section)与互斥体(Mutex)的区别
- 城市公交查询--Api接口
- ViewGroup为什么不会调用onDraw
- Java常用jar包用途