Hi,
I am opening a pop up window (child) from a parent window.
The Child window does show a table with multiple columns and rows, each
showing a value, e.g. 9 or 10 or etc. I have the values as hyperlinks, so
that if a number is selected in the child window it should close
automatically and insert the selected value in a text field in the parent
window.
I have created following code, but does not work.
Any ideas why or other approaches ?
Thanks.
that is how I open the child window:
newwindow = window.open("0to100kbs.htm" , "popup1",
"width=350,height=350,screenX=200,screenY=200,top= 200,left=200",
"alwaysRasied");
my table data in the child window:
"..... <TD><a href="#" onClick="sendInfo (this.innerHTML);">5</a></TD>"
and the javascript on the child window:
function sendInfo(name) {
window.opener.document.6Cos.ef.value = name;
self.close(); }
where as 6Cos is the form name in my parent window and ef the text field
name.