关闭子窗口,刷新父窗口怎么写???
我有一个index.aspx里面有一个按钮,当点击按钮,弹出一个showmodeldilog这个框,这个是aaa.aspx
父窗口代码
function show(id){ window.showModalDialog("aaa.aspx?id="+id,"","status=no;dialogWidth=300px;dialogHeight=200px;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise");}
protected void btnClose_Click(object sender, EventArgs e) { this.btnClose.Attributes["onClick"] = "javascript:window.opener.location.reload(); window.opener = null;history.go(-1);window.close();"; }
如需要阅读该回复,请登录或注册CSDN!