glowas
asked on
HELP: popups children and parent
I have one main popup window with some javascript functions.
Clicking on a link opens a child popup window.
I don’t know how those two popup windows can collaborate in javascript?
By collaborate I mean few things:
-how I can call javascript functions from parent code in child popup code?
-how can I close parent popup from the child’s code
-if parent popup has ActiveX component, can I set some property of that ActiveX from the child popup window?
Please give some code examples….
Clicking on a link opens a child popup window.
I don’t know how those two popup windows can collaborate in javascript?
By collaborate I mean few things:
-how I can call javascript functions from parent code in child popup code?
-how can I close parent popup from the child’s code
-if parent popup has ActiveX component, can I set some property of that ActiveX from the child popup window?
Please give some code examples….
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the response guys.
I'll test it now.
One more thing:
-How to close all child popups when closing the parent window?
I'll test it now.
One more thing:
-How to close all child popups when closing the parent window?
should remember someway the vars referring to the popups
for Mozilla:
var win1 = window.open ("popup1.htm","", "dependent");
var win1 = window.open ("popup1.htm","", "dependent");
function helloworld(){
alert("Hello World");
}
call it in the child like so
<a href="#" onclick="opener.helloworld
Close the popup
<a href="#" onclick="self.close();retu
I do not use activeX and do not allow them to be run on my boxes so cannot help on those