Close Popup Redirect Parent to New Link?


Does anybody know how to redirect the parent window (below the popup) to a new address when a user clicks a link in a pop? And the pop up should close.

This javascript refreshes the parent window and closes the pop up but it does not send the user to a new page in the parent window.

onClick=“window.opener.location.reload(true); window.close();”

I don’t know much about javascript. :blush: Thanks for the help.:wink:

You should simply be able to do

<element onClick="window.opener.location.reload(true);window.opener.location.href='';window.close();"></element>