Location.Href of a Popup Window
Posted on 2006-03-31
OK, here's the thing. I have a window that is opening a popup by way of form with a target tag. It must be done this way because the popup is an external site that needs the form data. The name I am giving the new window is "newwin". Is there a way to change the location.href attribute of the popup window from the parent doing this? I tried newwin.location.href, parent.newwin.location.href, newwin.document.location.href all to no avail. I know that normally you would specify a variable using var mywindow = window.open("","newwin") then say mywindow.location.href="". I also know that you can direct to a frame by using parent.frame1.location.href="". Not sure how to use the window name to refer to a popup. Please help.