js 弹出全屏幕窗口
弹出全屏窗口:
function ow()
{
//用tmp保存新弹出的窗口
//fullscreen=1表示弹出全屏窗口
var tmp=window.open("about:blank","","fullscreen=1");
}
弹出非全屏幕自定义窗口:
function ow()
{
//用tmp保存新弹出的窗口
var tmp=window.open("about:blank","","fullscreen=0");
//移动到屏幕左上角
tmp.moveTo(50,50);
//创新设置大小
tmp.resizeTo(screen.width-20,screen.height);
//给新弹出的窗口设置焦点
tmp.focus();
//转向传入的函数
tmp.location=edit.aspx;
}
function ow()
{
//用tmp保存新弹出的窗口
//fullscreen=1表示弹出全屏窗口
var tmp=window.open("about:blank","","fullscreen=1");
}
弹出非全屏幕自定义窗口:
function ow()
{
//用tmp保存新弹出的窗口
var tmp=window.open("about:blank","","fullscreen=0");
//移动到屏幕左上角
tmp.moveTo(50,50);
//创新设置大小
tmp.resizeTo(screen.width-20,screen.height);
//给新弹出的窗口设置焦点
tmp.focus();
//转向传入的函数
tmp.location=edit.aspx;
}