There is a page in asp.net which have a link that opens into a new tab in browser. So when I close my parent tab all the child tabs should be closed.
How can I do that?
My approach was using Javascript but till now not reached too far.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whenever you call window.open(), you are given a handle:
If you keep track of these handles in an array (for example), you can then call:
When you’re done.
Edit
For example:
Whenever you want to open a window:
And to close them all