当我关闭父窗口时如何关闭所有子窗口 [英] how to close all the Child window when i close the Parent window

查看:104
本文介绍了当我关闭父窗口时如何关闭所有子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击其他链接"按钮时,我的其他子"窗口已打开.
最后,当我关闭父窗口时,它应该关闭属于该父窗口的所有子窗口.


在此先感谢

Sushil Dharmar

When i click on Different Link Button My different Child window is been opened.
And finally When i Close the Parent window it should close all the child window belonging to that parent window.


Thanks in advance

Sushil Dharmar

推荐答案

您可以订阅一个关闭事件,尽管并不能保证您可以得到它.

不过,这是糟糕的网页设计.
There is a closing event you can subscribe to, although it''s not guarenteed you''ll get it, you should.

This is bad web design though.


这篇关于当我关闭父窗口时如何关闭所有子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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