在头部加上 <base target="_self" />
//模态窗口 url:弹出窗口的地址 arg:弹出窗口参数[Arguments/self] w:弹出窗口的宽度 h:弹出窗口的高度
function ShowMDENEW(url,arg,w,h)
{
varresult = window.showModalDialog(url,arg,'dialogTop='+(screen.height/2- h/2)+'; dialogLeft='+(screen.width/2 -w/2)+';dialogHeight='+h+'px;dialogWidth='+w+'px');
if(typeof(result)== "undefined"){
return "";
}
returnresult;
}
//返回值
var result ={};
result.id=vChecks.val();
result.engname = vChecks.parent().parent().find("td:eq(2)").text();
window.returnValue =result;
window.close();
相关链接: