window.open打开示例代码,在页面中显示
1.js复制代码代码如下所示:
功能开窗(URL,名字,Iwidth,的Iheight)
{
转到页面地址
名称页名称为空
/ / Iwidth弹出窗口的宽度
/ /的Iheight弹出窗口的高度
/ / window.screen.height获取屏幕的高度,和屏幕分辨率的宽获取屏幕的宽度
Var iTop = /2 (window.screen.height-30-iHeight); / / vertical position to get the window;
VaR离开= / 2(窗口。屏幕。width-10-iwidth / /获得);窗位;
Window.open(URL名称,'height = +的Iheight +,innerheight = +的Iheight +,宽度= + Iwidth +,+ innerwidth = Iwidth +,= + + =伊通,左+放+,=没有菜单栏工具栏,菜单栏= =不,不,左= +我+的)。
}
2。调用方法
复制代码代码如下所示:
去一个