栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > JavaScript

Javascript弹出窗口的各种方法总结

JavaScript 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Javascript弹出窗口的各种方法总结

复制代码 代码如下:
//关闭,父窗口弹出对话框,子窗口直接关闭
this.Response.Write("");

//关闭,父窗口和子窗口都不弹出对话框,直接关闭
this.Response.Write("");

//弹出窗口刷新当前页面width=200 height=200菜单。菜单栏,工具条,地址栏,状态栏全没有
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("");

//弹出相同的一页

//
Response.Write("parent.mainframeBottom.location.href='yourwebform.aspx?temp=" +str+"';");


 
  
参数解释:
  
js脚本结束

'newwin':隐藏菜单栏地址栏工具条
width=50:宽度
height=50:高度
scrollbars=yes/n滚动条
top=50:窗口距离屏幕上方
left=50:窗口距离屏幕左侧
例:
复制代码 代码如下:
window.open('detail.aspx?ID="+e.Item.Cells[1].Text+"','newwin','width=750,height=600,scrollbars=yes,top=50,left=50');");
this.Response.Write("");

例:
复制代码 代码如下:
this.Response.Write("");
this.Response.Write("");

例:
复制代码 代码如下:
linkcolumn1.DataNavigateUrlFormatString="javascript:varwin=window.open('edit_usr.aspx?actid={0}','newwin','width=750,height=600,scrollbars=yes,top=50,left=50');window.close()";

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/109655.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号