window.showModalDialog("SMD_target.htm","Dialog Arguments Value","dialogHeight: 73px; dialogWidth: 697px; dialogTop: 29px; dialogLeft: 372px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");

解决方案 »

  1.   

    window.open(url,'','resizable=no')
    就可以不改变窗体的大小;当然你非要去处最小化,关闭,到是可以做个无边的窗体:
    无边:(摘)
    minimizebar="images/minimize.gif"; 
    minimizebar2="images/minimize2.gif";
    closebar="images/close.gif";        
    closebar2="images/close2.gif";      
    icon="images/icon.gif";             
    function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr)  
    {
      var contents="<html>"+               "<head>"+
            "<title>"+titleWord+"</title>"+
       "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">"+
        "<link rel='stylesheet' href='inquirybase.css'>"+
       "<object id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+
       "</head>"+
                   "<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false' onkeydown='  if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload=' document.all.bottomtxt.style.top=(document.body.clientHeight-20).toString()+px;'>"+
       "  <table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor="+titleBg+" id=mainTab>"+
       "    <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
       "      <td width=18 align=center><img height=12 width=12 border=0 src="+icon+"></td>"+
       "      <td   width="+w+"><span id=mytitle style=font-size:12px;color:"+titleColor+";font-family:宋体;position:relative;top:1px;>"+titleWord+"</span></td>"+
       "      <td width=14><img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onmousedown=hhctrl.Click(); onmouseover=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></td>"+
       "      <td width=13><img border=0 width=12 height=12 alt=关闭 src="+closebar+" onmousedown=self.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></td>"+
       "    </tr>"+
       "    <tr height=*>"+
       "      <td colspan=4>"+
       "        <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+
       "      </td>"+
       "    </tr>"+
       
       "  </table>"+
       "  <div id=bottomtxt style='position:absolute;left:0;top:0px;width:97.3%;height:20;background-color:#0099FF;border:0px' align='left'><table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor=#6a7f9a><tr><td id = mystatus></td></tr></table></div>"+    "</body>"+
       "</html>";  pop=window.open("","_blank","fullscreen=yes");
      pop.resizeTo(w,h);
      pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
      pop.document.writeln(contents);
    实际你可以搜下gg,无边窗口,多了去了
      

  2.   

    xrascal(横刀夺爱) :
    你好!
        我主要是想把关闭按钮去掉,我用.aspx文件打开.aspx文件做为子窗口,我用的是
    Response.Write("<script language=javascript>window.open('ChangePassword.aspx','NewWin','edge=raised,center=no;help=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=620,height=400,left=500,top=200')</script>");
        你的我已写成 Response.Write("<script language=javascript>window.showModalDialog('ChangePassword.aspx','Dialog Arguments Value','dialogHeight=731, dialogWidth= 697, dialogTop= 229, dialogLeft= 372, edge= Raised, center= Yes, help= no, resizable= Yes, status= no')</script>");
       但关闭按钮还是去不掉,反而加了一“?”按钮,再帮我一把!!!!!!
      

  3.   

    大家别理解错,
    我是想用.aspx文件打开.aspx文件做为子窗口
      

  4.   

    我用.aspx文件打开.aspx文件做为子窗口
      

  5.   

    一样的,asp.net最终在客户端的不也只是html和js吗? 
       无边窗口 IE6不支持
      

  6.   

    thank very much!!!
    希望大家多多关照。
      

  7.   

    thank very much!!!
    希望大家多多关照。