<body onLoad="window.open('1.htm','newWin','');window.opener=null;window.close();">

解决方案 »

  1.   

    onLoad="window.open('yourpage.htm', 'winname','toolbar=yes, location=yes,status=yes,menubar=yes, scrollbars=yes,resizable=yes,width=300,height=200')"
    “'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, width=300, height=200,left=100, top=100'”在这里toolbar代表工具栏,location代表地址栏,directories代表导航条,status为状态栏,menubar为菜单栏,scrollbars为滚动条,resizable为更改大小手柄,而 width、height分别表示窗口的宽和高,left、top则表示窗口弹出的位置。toolbar, location, directories, status, menubar, scrollbars, resizable的值可设为yes、no、1或0,yes(1)表示新窗口具有该特性,no(0)则否。而width、height、left、top的值则应以数字填入,单位为px