window.showModalDialog相关问题小结
2017-08-09 00:00
387 查看
var width = window.screen.width;
var height =window.screen.height;
window.showModalDialog(encodeURI(url), widow,'top=1;left=1;toolbar=no;menubar=no;location=no;status=no;dialogWidth='+width+'px;dialogHeight='+height+'px;');
1.encodeURI:把字符串作为 URI 进行编码
2.url:子窗口路径
3.widow:打开子窗口提示重新登录,window可把父窗口session传给子窗口
4.参数:
dialogHeight :对话框高度,不小于100px,IE4中dialogHeight 和 dialogWidth 默认的单位是em,而IE5以上是px,为方便其见,在定义modal方式的对话框时,用px做单位。
dialogWidth: 对话框宽度。
dialogLeft: 离屏幕左的距离。
dialogTop: 离屏幕上的距离。
center: {yes | no | 1 | 0 }:窗口是否居中,默认yes,但仍可以指定高度和宽度。
help: {yes | no | 1 | 0 }:是否显示帮助按钮,默认yes。
resizable: {yes | no | 1 | 0 } 〔IE5+〕:是否可被改变大小。默认no。
status: {yes | no | 1 | 0 } 〔IE5+〕:是否显示状态栏。默认为yes[ Modeless]或no[Modal]。
scroll:{ yes | no | 1 | 0 | on | off }:指明对话框是否显示滚动条。默认为yes。
var height =window.screen.height;
window.showModalDialog(encodeURI(url), widow,'top=1;left=1;toolbar=no;menubar=no;location=no;status=no;dialogWidth='+width+'px;dialogHeight='+height+'px;');
1.encodeURI:把字符串作为 URI 进行编码
2.url:子窗口路径
3.widow:打开子窗口提示重新登录,window可把父窗口session传给子窗口
4.参数:
dialogHeight :对话框高度,不小于100px,IE4中dialogHeight 和 dialogWidth 默认的单位是em,而IE5以上是px,为方便其见,在定义modal方式的对话框时,用px做单位。
dialogWidth: 对话框宽度。
dialogLeft: 离屏幕左的距离。
dialogTop: 离屏幕上的距离。
center: {yes | no | 1 | 0 }:窗口是否居中,默认yes,但仍可以指定高度和宽度。
help: {yes | no | 1 | 0 }:是否显示帮助按钮,默认yes。
resizable: {yes | no | 1 | 0 } 〔IE5+〕:是否可被改变大小。默认no。
status: {yes | no | 1 | 0 } 〔IE5+〕:是否显示状态栏。默认为yes[ Modeless]或no[Modal]。
scroll:{ yes | no | 1 | 0 | on | off }:指明对话框是否显示滚动条。默认为yes。
相关文章推荐
- window.showModalDialog方式/模式窗口数据不刷新(缓存)问题
- window.showModalDialog两次加载问题,清除缓存
- 前台技术--window.showModalDialog带来的浏览器兼容问题
- ucUncaught TypeError: window.showModalDialog is not a function关于showModalDialog停用的问题
- window.showModalDialog弹出对话框刷新问题的总结
- window.showModalDialog弹出对话框刷新问题
- window.showModalDialog两次加载问题清除缓存方法
- window.showModalDialog刷新父窗口 父子窗口之间传值 问题
- window.showModalDialog后台关闭问题
- window.showmodaldialog()模态窗口的最小化、最大化问题
- window.showModalDialog方式/模式窗口数据不刷新(缓存)问题
- Window.ShowModalDialog的参数问题
- window.showModalDialog 内跳转页面的问题
- window showModalDialog 在IE6 IE7 高度(height) 问题
- Window.ShowModalDialog的参数问题
- 【转载】解决window.showModalDialog 模态窗口中location 打开新窗口问题
- Window.ShowModalDialog的参数问题
- window.showModalDialog()弹出页面的关闭问题
- window.showdialog showModalDialog 完全手册,解决模态窗口,传值和返回值问题
- window.showModalDialog弹出窗口翻页时弹出新窗口的问题