这是一个JS脚本语言...功能是关闭子窗口,自动刷新父窗口
var newopen;
newopen=window.open(ucl,"250","200","500","400");
function delopen(ucl1){
ucl="EmpMain_delete.asp?id="+ucl1;
newopen=window.open(ucl,"250","200");
setInterval('wen()',10); //系统的方法,每隔10毫秒就调用wen()方法
}
function wen(){
if(newopen.closed){
window.location.reload();
}
}
在父窗口调用语言
『<a href="#" onClick=delopen()>新增</a>』
1866

被折叠的 条评论
为什么被折叠?



