javagirip
asked on
how to pass a new url from popup child window to the parent window?
Hi,
I have a parent window and a popup child window, in my child window I have a link to a new url (in a ahref block), if I click the link it should send that url to the parent window and focus the parent window, and close the popup child window. Any diea?, a simple sample code would be appreciated
Thanks in advance
I have a parent window and a popup child window, in my child window I have a link to a new url (in a ahref block), if I click the link it should send that url to the parent window and focus the parent window, and close the popup child window. Any diea?, a simple sample code would be appreciated
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<A href="javascript:window.op ener.locat ion='http://www.google.com/';">Go oooogle</a >
Nice, but you'd still need the call to focus and close.
Why focus? Just in case the user activated another window in the process.
Why focus? Just in case the user activated another window in the process.
ASKER
Thanks cLFlaVA, your approach works good!