function selectTime(id){
var url = "<%=basePath %>enterprise/qy1003_selectTime.jsp";
url += "?id=" + id;
window.open (url, 'newwindow', 'height=100, width=400, top=400,left=500, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
}
执行完成之后返回:
//当前窗口关闭
window.close();
// 父窗口刷新
window.opener.document.URL=url;
var url = "<%=basePath %>enterprise/qy1003_selectTime.jsp";
url += "?id=" + id;
window.open (url, 'newwindow', 'height=100, width=400, top=400,left=500, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
}
执行完成之后返回:
//当前窗口关闭
window.close();
// 父窗口刷新
window.opener.document.URL=url;
本文介绍了一个使用JavaScript实现的弹窗功能,该功能用于从外部页面中选择时间,并在完成后关闭当前窗口并刷新父窗口。

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



