Mojave Posted March 23, 2006 Share Posted March 23, 2006 Hi, this is my first post and I hope I'm following protocol correctly.From my main window, I use window.open() to create a new window. I am not sure if that is really a "child" window or if child is used only when discussing frames. From the child window, when a link is clicked, I want to update the source of the "parent" window, the window that created the child.I've scoured Google and several javascript sites looking for an answer. I get plenty of examples of how to do this with frames, but not with disconnected windows. I've tried to access the parent window and set the source from the child in multiple ways:window.parent.locationdocument.parent.locationtop.locationwindow.top.locationI've exhausted every permutation. I can get the child window's source to update to what I want the parent window to be, but never the parent itself.Could someone point me to an example please?Thanks! Link to comment Share on other sites More sharing options...
Webworldx Posted March 23, 2006 Share Posted March 23, 2006 Heh, think you might be looking for window.opener http://www.mozilla.org/docs/dom/domref/dom_window_ref77.html Link to comment Share on other sites More sharing options...
Mojave Posted March 23, 2006 Author Share Posted March 23, 2006 Thanks! Exactly what I was looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now