打开弹出窗口并同时更改父窗口的路径 [英] open popup window and simultaneously change path of parent window

查看:105
本文介绍了打开弹出窗口并同时更改父窗口的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设页面(abc.aspx)有一个按钮,并且在单击该按钮时发生2件事:-
1)弹出窗口打开(def.aspx)
2)和具有按钮重定向到(geh.aspx)的页面(abc.aspx)

现在可以帮助我

Suppose a page (abc.aspx) have a button and on click of that button 2 things happens :-
1) a popup window open(def.aspx)
2) and page(abc.aspx) that have button redirect to (geh.aspx)

now can somehelp me please

推荐答案

我不确定您要做什么,但就您的要求而言:
要使它看起来像您正在同时重定向到页面并打开弹出窗口一样,您可以做的是:

1)单击按钮后,首先重定向到页面geh.aspx.
2)使用查询参数告诉g​​eh.aspx您需要弹出abc.aspx
3)然后在geh.apsx页面的js中检查查询参数,并打开带有abc.aspx网址的弹出窗口.

希望这个想法可行...
I am not sure what you are up to but as far as your requirement is concerned:
To make it appear as if you are simultaniously redirecting to a page and opening a popup window, what you can do is:

1) first redirect to page geh.aspx on button click.
2) use query parameter to tell geh.aspx that you need a popup to abc.aspx
3) then in js of the page of geh.apsx check for the query parameter and open the popup window with the url of abc.aspx.

hope this idea works...


这篇关于打开弹出窗口并同时更改父窗口的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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