Hi all,
I am having a problem here...
from a window I open a new one and from the new one I want to run a script that changes an element value in the first one.
I tested this with a hidden form element, which works fine. But now I need to perform this on an input element in a div somewhere else in that document. Abd the thing is, I can't seem to get a hold of that element.
When I access it in the opener window it works...
test line:
When I try to access it from the newly opened window, like this:
I get a "window.opener.document.getelementbyid(...) is empty or no object" error message
Can someone help me out on this?
Thanx in advance,
Anton.
I am having a problem here...
from a window I open a new one and from the new one I want to run a script that changes an element value in the first one.
I tested this with a hidden form element, which works fine. But now I need to perform this on an input element in a div somewhere else in that document. Abd the thing is, I can't seem to get a hold of that element.
When I access it in the opener window it works...
test line:
Code:
alert('URL = ' + document.getElementById("idLinkURL").getAttribute("value"));
When I try to access it from the newly opened window, like this:
Code:
alert('URL now is :' + window.opener.document.getElementById("idLinkURL").getAttribute("value"));
I get a "window.opener.document.getelementbyid(...) is empty or no object" error message
Can someone help me out on this?
Thanx in advance,
Anton.