Imagine viewing a web page @ mysite2/world and opening up a JavaScript popup at mysite/includes/popups.php. The popup features a link back to mysite2:
<a href="javascript:;" onclick="opener.location='http://www.mysite2.com/world/canada'">Canada</a>
When you click the link in the popup, the MAIN PAGE (mysite2/world) forwards to mysite2/world/canada. The popup just hangs there, waiting for you to click similar links.
It all worked when the links to the popup looked like this:
<a href="javascript:;" onClick="MM_openBrWindow('http://www.mysite.com/includes/popups.php?values=px|na','na','[insert popup attributes here]')">popup</a>
However, I found a new script that does away with the onClick stuff. My links now look like this:
<a href="http://www.mysite.com/includes/popups.php?values=px|na" rel="popup standard 200 200">North America</a>
The popups open as they should, but when I click a link (to /world/canada, for example), instead of forwarding the main page to mysite2/world/canada, it forwards it to the the site’s home page. So it’s working in the sense that it forces the main page to a different URL - just not the URL I want it to go to.
Does anyone know how to modify my script to re-enable “remote-controlled” link forwarding? I obviously need to delete the reference to onclick, but I don’t know what to replace it with.
Thanks.