Response.Write("window.open(\"wish.aspx?mobilePhone=" + strMobilePhone + "\",width=\"100\",height=\"200\"); </script>");怎么新开的窗口,大小没有象我设置的那样???Response.Write("window.open(\"wish.aspx?mobilePhone=" + strMobilePhone + "\",top=\"100\",height=\"top\"); </script>");报错

解决方案 »

  1.   

    BT.Attributes.Add("onclick","window.open('WebForm2.aspx?ZoneNo="+Label1.Text+"','','Toolbar=no')");
    参考这个,不知道你是不是这个意思。
      

  2.   

    Response.Write("window.open(\"wish.aspx?mobilePhone=" + strMobilePhone + "\",width=\"100\",height=\"200\"); </script>");怎么新开的窗口,大小没有象我设置的那样???
    --应该改为:
    Response.Write("window.open(\"wish.aspx?mobilePhone=" + strMobilePhone + "\",'win',\"status=yes,toolbar=no,scrollbar=no,resizable=yes,menubar=no,location=no,width=100,height=200,top=0,left=0\"); </script>");Response.Write("window.open(\"wish.aspx?mobilePhone=" + strMobilePhone + "\",top=\"100\",height=\"top\"); </script>");height=“top”是错误的
      

  3.   

    showOpen = "<script language=JavaScript>" _
                        & "window.open('/test4/KYDS9999VB.aspx','HI014'," _
                        & "'width=330px,height=540px,status=no,toolbar=no,menubar=no,resizable=no,location=no');" _
                        & "window.opener=null;window.top.close();</script>"        If (Not IsClientScriptBlockRegistered("clientScript")) Then
                RegisterClientScriptBlock("clientScript", showOpen)
            End If
      

  4.   

    window.open(url,name,options)
    参数应该写在第三个参数里,楼主写在了第二个
      

  5.   

    style="cursor:hand";
    hand是鼠标形状,也可以是其他的
      

  6.   

    string  script =@"<script language='JavaScript' >window.open('new.aspx?id="+id +"' ,'','left=100,top=10,height=500,width=650,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no')"; Response.Write(script +"</"+"script>");
      

  7.   

    你的window.open()如果应该放在<javascript>里面啊