简体   繁体   English

父窗口打开子窗口

[英]parent window open child window

I want a page that open child window. 我想要一个打开子窗口的页面。 The child window will be redirect to other website for processing. 子窗口将重定向到其他网站进行处理。 The other website will send the result to our server by redirect on the child window.our server will process the result and return to parent window and close the child window. 另一个网站将通过子窗口上的重定向将结果发送到我们的服务器。服务器将处理结果并返回到父窗口并关闭子窗口。 Can it be done and how? 可以这样做吗?

  1. You use window.open method to open a child window and store the returned reference to interact with it later. 您可以使用window.open方法打开子窗口并存储返回的引用以便稍后与之交互。
  2. You use the window.parent property from the child window to access the parent window. 您可以使用子窗口中的window.parent属性来访问父窗口。

Here is an article demonstrating the approach. 是一篇展示该方法的文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM