使用模态窗口
例子
父页面
function GetContractor(namebox,idbox){
var ct=window.showModalDialog("../frame.htm","Contractor/contactorselect.aspx;选择承包人","dialogWidth=500px;dialogHeight=380px;center=yes;status=no");
if(ct!=null){
var ctstr=ct.split("|");
document.getElementById(namebox).value=ctstr[0];
document.getElementById(idbox).value=ctstr[1];
}
在弹出的模态窗口内
关闭的时候