Hi All,
Thanks for such a network we have here.
I need to close all the child windows opened by my parent window using javascript. How do i do that.But i dont have reference to those childs (point to note).Hope there might be a way to do it which resides in your mind.Need some exposure from you . Looking ahead of ur kind response thanks a million .
Knowledge is what expand , when shared ! (52)
7 1604
Hi All,
Thanks for such a network we have here.
I need to close all the child windows opened by my parent window using javascript. How do i do that.But i dont have reference to those childs (point to note).Hope there might be a way to do it which resides in your mind.Need some exposure from you . Looking ahead of ur kind response thanks a million .
Knowledge is what expand , when shared ! (52)
Welcome to TSDN.
But I think without having no references you can't do that.
And I think JavaScript will not that having no references of Children Windows.
Kind regards,
Dmjpro.
Thanks buddy for ur suggestion on my post. Actually wht matters most is being in the process and i'm in the process of finding an answer to this.
Thanks & Regards,
Ali (52)
Thanks buddy for ur suggestion on my post. Actually wht matters most is being in the process and i'm in the process of finding an answer to this.
If you have control over the code, why not keep references to the child windows? Show the code you are using.
You can set the window in an object variable when you open it, and then manipulate it anyway you want to..
For instance.. - oNewWindow = window.open(sURL,'newWindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left=' + iLeft +',top=' + iTop);
-
-
oNewWindow.close()
-
Give that a shot.
You can set the window in an object variable when you open it, and then manipulate it anyway you want to..
For instance.. -
oNewWindow = window.open(sURL,'newWindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left=' + iLeft +',top=' + iTop);
-
-
oNewWindow.close()
-
Give that a shot.
Please follow the Post Guidelines while you posting.
Kind regards,
Dmjpro.
Thanks to everyone who replied to my post .
But the situation in my scenario is out of my boundries the only option i've is
to handle the child windows without having any links to them except the parent window who created it.Well lets see wht cld be done for it.Anyways thanks again.(52)
But the situation in my scenario is out of my boundries the only option i've is
to handle the child windows without having any links to them except the parent window who created it.Well lets see wht cld be done for it.
Why can't you change the code in the parent window?
PS. what's this number 52 that you put at the end of each post?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Maheshkumar.R |
last post by:
Hi groups,
How i can command over the MDI CHIlD forms created dynamically at runtime from PARENT.
Let say, i have generated 5 mdichild forms, but i want to work with child form1 from MDI...
|
by: brianbender |
last post by:
I am trying to load and unload assemblies dynamically and call methods
and properties when loaded into an Appdomain
I can load assemblies all day in the current AppDomain without
references and...
|
by: brianbender |
last post by:
I am trying to load and unload assemblies dynamically and call methods
and properties when loaded into an Appdomain
I can load assemblies all day in the current AppDomain without
references and...
|
by: Mark Hoffy |
last post by:
Hello,
I have an MDI app. There are many child forms and they all have several
things in common. They all have a Save button, a public variable
boolNavigate, and they all have a TreeView...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |