父页面关键代码
var retValue = false;
retValue = window.showModalDialog('EvalComment.aspx? evaluationID',obj,'dialogHeight:208px;dialogWidth:318px;resizable:no;status:no;');
if (retValue == 1) { window.opener=null; window.open('','_self'); window.close(); }
模态对话框页面关键代码
{window.returnValue = 1; window.opener=null; window.open('','_self'); window.close(); }
本文介绍了使用JavaScript实现模态对话框的交互过程,通过showModalDialog方法展示对话框,并设置返回值来控制父窗口的行为,如关闭和刷新。
3450

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



