Link to home
Start Free TrialLog in
Avatar of Larry Groves
Larry GrovesFlag for United States of America

asked on

Send HREF From Modal To Parent And Close Modal

This is probably a pretty simple question, but I can't figure it out. I've searched here at EE as well as Google and nothing.

I have a modal window which has an href (url). When the user clicks on the href I want to pass that href to the parent window and then close the modal. I've got it working, based on a previous question, where when you click on the href inside the modal, a new window opens. But I don't want that. I just want to pass the href from the modal to the parent window and then close the modal. Is this possible?

Here's what I've got so far:
<a href="http://myHREF.com" onclick="parent.close()">Click here</a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of sunithnair
sunithnair

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
SOLUTION
Avatar of Kin Fat SZE
Kin Fat SZE
Flag of Hong Kong image

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 Larry Groves

ASKER

Thanks to the both of you.