(1) 在<head></head>中定义一个win变量:
<script language=javascript>
var win;
</script>
(2) 打开子窗口时,保存子窗口的对象:
<input id="btnSecchibashobango" style="Z-INDEX: 113; LEFT: 232px; WIDTH: 68px; POSITION: absolute; TOP: 88px; HEIGHT: 24px; Design_Time_Lock: True" οnclick="win=window.open('./frmSubSecchibashoKensaku.aspx','self','width=730,height=500, resizable=no,location=no,toolbar=no,scrollbars=yes')" type="button" value="参照" name="Button1" Design_Time_Lock="True">
(3) 关闭父窗口时关闭子窗口的对象
<body MS_POSITIONING="GridLayout" οnunlοad="win.close();">