全屏打开页面

全屏打开页面
javascript代码:
function  maxwindow()
{
    
var  x = screen.availwidth - 10 ;
    
var  y = screen.availheight - 30 ;
    
var  s = open( " login.jsp " , "" , " toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= " + x + " ,height= " + y + " ,top=0,left=0 " );
    
if  ( ! s)
        showtxt.style.display
= "" ;
    
else
    {
        
        
this .focus();
        
this .opener = null ;
        
this .close();
        s.focus();
    }
}

1.在页面onload事件中执行该函数:<body onLoad="maxwindow();">
2.把本网站地址加入客户端的信任网站域。

你可能感兴趣的:(全屏打开页面)