http://www.csdn.net/expert/topic/1065/1065988.xml?temp=.1665766

解决方案 »

  1.   

    var a = window.open("","",'width=650,height=420,scrollbars=no,resizable=yes')
    with(a.document)
    {
    open()
    write("您的内容")
    close()
    }
      

  2.   

    你可以这样做,先用首页打开你想打开的无地址无标题栏等的窗口,然后再把这个首页窗口关闭。首页代码如下:
    <html>
    <head>
    <title>&nbsp;Loading......</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <META HTTP-EQUIV="refresh" CONTENT="10">
    <link rel="stylesheet" href="style.css">
    <script language='javascript'>
    function test()
    {min.Click();}
    //--
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <OBJECT id="min" type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'>
    <param name='Command' value='Close'>
    </object>
    <script language='javascript'>
    document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#000000">');
             document.write('<table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF">');
     document.write('<tr><td align="center" valign="middle">');
     document.write('<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>已经登录系统, 可以关闭此窗口...... </b></font>');
     document.write('<br>(Logined,Please close this window...) </font>');
     document.write(' </td></tr></table></td></tr></table>');
    test();
    window.open('你的页面.htm','','resizable=1,scrollbars=0,status=1,menubar=no,toolbar=no,location=no, menu=no');
    </script></body>
    </html>
      

  3.   

    <SCRIPT language=Javascript1.2 type=text/javascript><!--
    function addbook(){
    alert("IE only")}
    var mode=0
    var old=new Array();
    function fullme(e){
    if(mode==0){
    if(typeof document.all!='undefined'){
    if(top.document.body.offsetWidth==screen.availWidth){
    alert("信息提示:你的浏览器已被锁定视窗最大化,无法启用全屏模式!");
    e.returnValue=false;
    return false;
    }
    top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);
    top.resizeBy(screen.availWidth-top.document.body.offsetWidth,
    screen.availHeight-top.document.body.offsetHeight);
    }else{
    window.top.moveTo(0,0);
    window.top.resizeTo(screen.availWidth,screen.availHeight);
    old[0]=window.toolbar.visible;
    old[1]=window.statusbar.visible;
    old[2]=window.menubar.visible;
    window.toolbar.visible=false;
    window.statusbar.visible=false;
    window.menubar.visible=false;
    }
    mode=1;
    }else{
    if(typeof document.all!='undefined'){
    top.moveTo(0,0);
    top.resizeTo(screen.availWidth,screen.availHeight);
    }else{
    window.toolbar.visible=old[0];
    window.statusbar.visible=old[1];
    window.menubar.visible=old[2];
    }
    mode=0;
    }
    return true;
    }
    --></SCRIPT>
    <body onload=fullme(event)>