复制代码代码如下所示:
关闭,父窗口弹出对话框窗口关闭。
this.response.write();

关闭,父窗口和子窗口不能直接关闭弹出对话框。
this.response.write();
this.response.write({ top.opener = null;top.close();} );
this.response.write();

Refresh the current page width=200 / pop-up menu height=200.Menu bar, tool bar, address bar, state bar all
this.response.write();

刷新当前页面弹出窗口
this.response.write();
this.response.write();

/ /弹出窗口跳到webform2.aspx页面(在IE窗口)
this.response.write();

关闭当前窗口,刷新父窗口。
this.response.write();
this.response.write();

刷新/父窗口窗口
this.response.write();
this.response.write();

当然. / /弹出窗口弹出窗口后(webform2 .aspx)
this.response.write();

确定弹出窗口,刷新父窗口。
this.response.write();

弹出同一页



响应。写(母。mainframebottom。位置。href = 'yourwebform。aspxtemp =++ STR;);



<!——
Window.open(页。HTML,'newwindow ','height = 100,宽度= 400,= 0,= 0 =无左,工具栏,菜单栏=不=不,滚动条,可调整大小的=不,位置= N,O,地位=没有) / /这句话应该写出来一排
-->

U3000 U3000
参数解释:
U3000 U3000
js脚本开始;
window.open命令一个新窗口。
对the'page文件名。html'pop-up窗口;
对the'newwindow'pop-up窗口名(不是文件名)是没有必要,可以用空的取代;
高度= 100窗口高度;
宽度= 400窗口宽度;
屏幕顶部的顶部= 0窗口的像素值;
从屏幕左侧的左= 0窗口的像素值;
工具栏是否显示为工具栏否,是显示;
菜单栏,菜单栏和滚动条的滚动条。
可调整大小的=不允许改变窗口的大小,当然是允许的;
位置是否显示地址栏,允许;
状态是否显示状态栏信息(通常文件已经打开,允许是);
js脚本的结束

该公司:隐藏菜单栏地址栏工具栏
宽度= 50:宽度
高度= 50:高度
滚动条滚动条是 / N =
顶部= 50:窗口距离屏幕
左= 50:屏幕左侧的窗口距离
例:
复制代码代码如下所示:
Window.open('detail。aspxid =+ e.item。细胞{ 1 }。文字+ ,'newwin ','width = 750,高度= 600,滚动条=是的,最高50,左= 50););
this.response.write();

例:
复制代码代码如下所示:
this.response.write();
this.response.write();
this.response.write({ top.opener = null;top.close();} );
this.response.write();

例:
复制代码代码如下所示:
linkcolumn1。datanavigateurlformatstring =Javascript:varwin = window.open('edit_usr。aspxactid = { 0 },'newwin ','width = 750,高度= 600,滚动条=是的,最高50,左= 50);window.close()。