Link to home
Start Free TrialLog in
Avatar of javagirip
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
ASKER CERTIFIED SOLUTION
Avatar of cLFlaVA
cLFlaVA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arantius
arantius

<A href="javascript:window.opener.location='http://www.google.com/';">Gooooogle</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.
Avatar of javagirip

ASKER

Thanks cLFlaVA, your approach works good!