1.window.open
var vsURL = "/BI/jsp/BI/BI_PAY_SPLIT1_Edit.jsp?condition=1=1";
var iWidth = screen.availWidth - 400;
var iHeight = screen.availHeight - 300;
var vsStyle = "menubar= no, toolbar= no, scrollbars=no, status=yes,location=no,left = 0,top= 0, resizable= yes, titlebar= yes, width= 800, height= 1200";
window.open(vsURL, "newwindow", vsStyle);
2.window.showModalDialog
var vsURL = "/BI/jsp/BI/BI_PAY_SPLIT_Edit.jsp?condition=1=1";
var iWidth = screen.availWidth - 10;
var iHeight = screen.availHeight - 30;
var vsStyle = "menubar= no, toolbar= no, scrollbars=no, status=yes,location=no,left = 0,top= 0, resizable= yes, titlebar= yes, width= " + iWidth + "px, height= " + iHeight + "px";
window.showModalDialog(vsURL, "newwindow", vsStyle);
showModalDialog的大小是不可以调节的,而open却可以调节,这样更容易对界面的内容进行排版,并且指定页面在屏幕中的位置,所以一般推荐使用open的方式
var iWidth = screen.availWidth - 10;//获取显示器的宽度
var iHeight = screen.availHeight - 30;//获取显示器的高度