I have a page with a link that opens a popup window. There's a link in the popup window that runs a javascript function that's supposed to change the url of the window that opened it. Because of the way the pages are set up I have to reference that original window by its name rather than by window.opener, etc. The window is named "originalwindow". I can reference it from a regular link in the popup like this:
This works correctly. But I need to do it from a javascript function. I assumed something like this would work:Code:<a href="http://www.google.com" target="originalwindow">
but it doesn't do anything. I've tried every variation I can think of but can't get one that works, and I've been searching and searching on google and can't find anything that explains how to reference a window by its name in this way. What is the correct way to do this? I hope this makes sense.Code:originalwindow.location.href = 'http://www.google.com';


LinkBack URL
About LinkBacks
Reply With Quote



