我们如何使用showmodaldialogue触发父窗口的页面加载 [英] how we can fire page load of parent window using showmodaldialogue

查看:120
本文介绍了我们如何使用showmodaldialogue触发父窗口的页面加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在关闭弹出窗口为showmodaldialog后,如何触发父窗口的页面加载事件.我在Visual Studio 2003中工作.请帮助我

how we can fire page load event of parent window after closing the popup as showmodaldialog. i am working in visual studio 2003. please help me

推荐答案

由于您使用的是JavaScript,因此无法触发页面加载事件.但是,您可以使父页面刷新,这将重新加载页面

Window.opener.location.href = window.opener.location.href.
You can''t fire the page load event since you working in javascript. You can however cause the parent page to refresh which will reload the page

Window.opener.location.href = window.opener.location.href.


这篇关于我们如何使用showmodaldialogue触发父窗口的页面加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆