Instead of opener.location.href use parent.location.href . See below:
function closeAndGotoURL { TINY.box.hide(); parent.location.href='http://www.google.com'; }
You can also use top.location.href :
function closeAndGotoURL { TINY.box.hide(); top.location.href='http://www.google.com'; }
Another option is to use pure HTML. Although it will not close the popup first, it redirects the entire window to your URL. Note the target attribute of the anchor tag.
<a href="http://www.google.com" target="_top">
NOTE 1: Why close the popup first? If you redirect the entire page, just redirect - no need to close the pop-up window.
NOTE 2: This will only work if the page loaded in the iframe is in the same domain as the parent window (I assume this is the case, the pop-up code).
source share