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>