open打开的页面最大化的js方法和如何获取电脑宽度和高度的方法

 function doLoginMaxWindow()
{
    var today = new Date();
    //var w = window.open('../../../../DefaultLoginPage.aspx', today.getTime(), 'width:1024px;height:768px;toolbar=yes;status=yes');
    var w = window.open('../../../../DefaultLoginPage.aspx', today.getTime(), 'status=1;toolbar=0');   
    w.moveTo(0, 0);
    w.resizeTo(screen.availWidth, screen.availHeight);
    window.opener = null;
    if (parseFloat(navigator.appVersion.match(/MSIE (\d\.*\d*)/i)[1]) <= 6)
    {
        top.opener = null;
        top.close();
        window.close();
    }
    else
    {
        top.open('', '_parent', '');
        top.close();
        window.close();
    }
}
自己可以试一下

你可能感兴趣的:(Date,function,null)