比如  a.htm  b.htm  两个文件
a.htm  中只有一句
<script>window.open("b.htm","","");window.opener="";self.close();script>
b.htm  中写你上面那些内容,

解决方案 »

  1.   

    上面是我自己想的,你试试,最后那个</script>没敲全,注意
    下面还有个例子,共两个文件,index.aspx  default.aspxindex.aspx内容如下
    =======================================================================
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script>
    <!--
    function CS(){
    var ObjStr='<object id="Cls" classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 type=application/x-oleobject><param name="Command" value="CloseX"></object>'
    document.body.insertAdjacentHTML("BeforeEnd",ObjStr)
    if(parseInt(window.navigator.appVersion.split(";")[1].substr(5))>=6){
    window.opener=''
    self.close()
    }
    else Cls.Click()
    }function MachakFull(Ie,other){
    //Copyright ?1999 m.milicevic [email protected] [email protected]
    x=screen.availWidth;
    y=screen.availHeight;
    target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
    if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
    window.open(other,"sub",'scrollbars=yes');
    if (target >= 4){
    if (navigator.appName=="Netscape"){
        var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
    MachakFull.moveTo(0,0);
    MachakFull.resizeTo(x,y);}
    if (navigator.appName=="Microsoft Internet Explorer")
    window.open(Ie,"MachakFull","fullscreen=yes");
    }
    else window.open(other,"sub",'scrollbars=yes');
    }
    //-->
    </script>
    <body onload=setTimeout("CS()",3000);MachakFull('Default.aspx','Default.aspx')>
    </body>
    </html>=======================================================================
    default.aspx 新打开的页面,已是全屏
      

  2.   

    用两个窗口的方法我尝试了,在关闭第一个窗口的时候,(WINDOW。CLOSE()),系统总是提示,询问是否关闭,怎么能让他不提示呢,我用的是IE5
    ·
      

  3.   

    shuangren(双刃) 大虾
    我实验了你的方法
    他说只有在HTML帮助中才能使用词功能
    怎么回事呀,我应该怎么办????
      

  4.   

    这是因为浏览器版本的问题,我在IE6.0下测试正常,你可以试试IE5.5
    如果必须是IE5.0,那我就没有办法了
      

  5.   

    Try..<SCRIPT language=Javascript1.2 type=text/javascript>
    <!--
    var old=new Array();
    function fullme(e){
    if(typeof document.all!='undefined'){
    if(top.document.body.offsetWidth==screen.availWidth){
    baobao.Click();  //最大化->不是最大化
    //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;
    }
    return true;
    }
    -->
    </SCRIPT>
    </HEAD>
    <BODY background=images/lbg.gif bgColor=#ffffff onload=fullme(event)>
    <object id=baobao classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> 
    <param name="Command" value="Maximize"> 
    </object>