`

全屏打开页面

阅读更多
javascript代码:
<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->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.把本网站地址加入客户端的信任网站域。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics