CurtM
08-21-2003, 06:32 PM
Does opener refer to a window or a document in a window?
In a popup window, I have something like:
opener.myform.myinput.value = this.value
Shouldn't that statement always work, as long as the opener window has a form called myform with an input called myinput?
It works for me as long as the URL of the opener remains the same. I can refresh the window with an updated document from the same URL, and the above statement still works from the same popup.
But if the opener loads a document from a different URL, even though the new document still has a myform.myinput object, the above statement in the same popup no longer works.
Which leads me to believe that opener really doesn't refer to the window, rather a document in the window loaded from a specific URL.
In a popup window, I have something like:
opener.myform.myinput.value = this.value
Shouldn't that statement always work, as long as the opener window has a form called myform with an input called myinput?
It works for me as long as the URL of the opener remains the same. I can refresh the window with an updated document from the same URL, and the above statement still works from the same popup.
But if the opener loads a document from a different URL, even though the new document still has a myform.myinput object, the above statement in the same popup no longer works.
Which leads me to believe that opener really doesn't refer to the window, rather a document in the window loaded from a specific URL.