62,047
社区成员
发帖
与我相关
我的任务
分享
window.opener.document.getElementById()
window.parent.document.getElementById()
父窗口
function selectPerson(){
var myReturnValue="";
myReturnValue=newShowModalDialog("../system/user_manage_index2.jsp");
document.theForm.GRANTUSER.value=myReturnValue;
}
子窗口
function select(thisForm)
{
var employeesList = document.getElementsByName("LOGIN_ID");
var n=0;
var grantuser="";
for(var i=0;i <employeesList.length;i++){
if(employeesList[i].checked == true){
grantuser=employeesList[i].value;
n++ ;
}
}
if(n>1){
alert("只能选择一个人");
return;
}
if(n==0){
alert("请选择用户");
return;
}
window.parent.returnValue=grantuser;
window.opener.document.forms[0].submit();window.close();
return true;
}
window.opener.document.all.emptyFlag.value = document.emptyFlag.value;