子窗口传值给父窗口的有关问题()

子窗口传值给父窗口的问题(在线等)
父窗口   用window.open   打开子窗口
子窗口 <input   type= "radio "   .....> 中的值(单个)传到父窗口的 <input   type= "text "....> 中如何实现?

子窗口 <input   type= "checkbox "   .....> 中的多个值传到父窗口的 <input   type= "text "....> 中如何实现?



------解决方案--------------------
在子窗口中
window.opener.document.getElementById( "textId ").value=document.getElementById( "radioId ").value

window.opener.document.getElementById( "textId ").value=document.getElementById( "checkboxId ").value+document.getElementById( "checkbox2Id ").value
------解决方案--------------------
不用传,直接读就可以

var w = window.open( "子窗口 ");
//读取值
w.document.getElementById( "控件ID ").value

//获取checkbox
var cbs = w.document.getELementsByName( "checkBox名 ");
for(var i=0;i <cbs.length;i++)
alert(cbs[i].value);
------解决方案--------------------
up