父窗口中的按钮触发的事件 例:
function doSelect(){
var d = new Date();
var form = document.forms[0];
var url = form.action+"?action=findVIPMapping&t="+d.getTime();
window.open(url, "客户经理名单", "height=300, width=350, top=200, left=350, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");
}
子窗口可以将选中的checkbox的值 保存到父窗口的texarea域 例:
function doSave(){
var val = getCheckboxValue(document.getElementsByName("ch"));
window.opener.document.getElementById("accepter").value = val;
window.close();
}