function js_login(htmlurl) {
//弹出窗口中打开参数htmlurl制定的页面,该页面没有工具栏、地址栏、菜单栏、滚动条等,宽度520,高度390,该窗口的句柄为newwin
  var newwin=window.open(htmlurl,"四川嘉华管理系统","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=520,height=390");
//新窗口newwin移动到坐标(screen.width-520)/2 ,(screen.height-390)/2,其中screen.width表示客户浏览器屏幕的宽度(象素),screen.height表示客户浏览器屏幕的高度(象素),这里坐标定义为这个表达式是为了窗口居中显示
newwin.moveTo((screen.width-520)/2 ,(screen.height-390)/2); //newwin.resizeTo(screen.availWidth,screen.availHeight);
//newwin.outerWidth=screen.availWidth;
//newwin.outerH

解决方案 »

  1.   

    <!--
    function js_login(htmlurl) {
    //打开一个没有滚动条,状态栏,菜单栏的新窗口
      var newwin=window.open(htmlurl,"四川嘉华管理系统","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=520,height=390");
    //移动屏幕的中间
    newwin.moveTo((screen.width-520)/2 ,(screen.height-390)/2);
    //newwin.resizeTo(screen.availWidth,screen.availHeight);
    //newwin.outerWidth=screen.availWidth;
    //newwin.outerH
      

  2.   

    bencalie(Bencalie) 已经解释得很详细了
    kingdomzhf(旭日东升)是来混分的吧,hoho