搞了半天就是搞不出模式对话框的全屏显示,原来其与window.open的参数设置完全不同.
function winModalFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="dialogHeight:"+sheight+"px;dialogWidth:"+ swidth +"px;status:yes;scroll:yes;resizable:yes;center:yes";
var tmp=window.showModalDialog(strURL,window,winoption);
return tmp;
}
function winOpenFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="left=0,top=0,height="+sheight+",width="+swidth+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
var tmp=window.open(strURL,'',winoption);
return tmp;
}
分享到:
相关推荐
NULL 博文链接:https://shawnfree.iteye.com/blog/598885
window.showModalDialog以及window.open用法简介
This is a `window.showModalDialog()` shim using a modal HTML5 `<dialog>` element and ECMAScript 6 Generators. It was tested in the latest Google Chrome with the *Enable Experimental JavaScript* flag ...
window.showModalDialog以及window.open用法简介
针对window.showmodaldialog弹出窗体无刷新的详细使用
window.showModalDialog的基本用法
javascript代码模块之\Window.ShowModalDialog使用手册
window.showModalDialog&&open.docx
使用window.showModalDialog的程序员都知道,该方法可返回值。但是如果遇到跨域时,就返回为underfine。本文档通过iframe镶嵌页面解决该问题。
主页面用window.showModalDialog的时候,如果直接打开其它系统的页面,这时候别人的页面在window.returnValue=1;这样返回值的时候,主页面是取不到返回值的,原因就是因为跨域了.
ShowModalDialog函数的功能: 使用方法: 参数说明:
javascript代码模块之window.showModalDialog方法的使用
本文实例讲述了js的window.showModalDialog及window.open用法。分享给大家供大家参考。具体分析如下: 一、window.open()支持环境: JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+ 二、基本语法: window.open...
Window.ShowModalDialog使用手册_对话框 .txt 详细
JS 弹出对话框window.showModalDialog,级联方式,可以返回传值给页面
showModalDialog() (IE 4+ 支持)showModelessDialog() (IE 5+ 支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。...
关于struts2里用javascript刷新window.showModalDialog的父页面
今天在项目中用到了弹出子窗口,就想到了用JavaScript实现的两种方法,一个是window.open();一个是window.showModalDialog()方法,后者是存在父子关系的一种弹出窗口,只有子窗关闭,父窗口才激活,并且可以传送参数...