弹出窗口,并适合屏幕大小
window窗口方式
function winModalFullScreen() {
var sheight = screen.height - 95;var swidth = screen.width - 8;
window.open("${CTX_ROOT}/View3d/index.htm", "newwindow","height="+sheight+", width="+swidth+", top=0,left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no")
}
showModalDialog方式 (此种方式,个人发现打开窗口后,原来那个页面就跟把数据库冻结了似的,不动了,仅个人观点)
function winModalFullScreen() {
var sheight = screen.height - 95;
var swidth = screen.width - 8;
var winoption = "dialogHeight:" + sheight + "px;dialogWidth:" + swidth
+ "px;status:no;scroll:no;center:yes;help=no;";
var NewFull = window.showModalDialog("${CTX_ROOT}/View3d/index.htm",
newwindow, winoption);
return NewFull;
}
调用 <a href="javascript:winModalFullScreen()">
版权声明:本文为博主原创文章,未经博主允许不得转载。