Javascript 保持window.open()不全屏打开

Javascript 保持window.open()不全屏打开,javascript,vb.net,Javascript,Vb.net,我在vb.net程序中有以下代码: Response.Write("<script>window.open('./folder/frame.aspx?x=" & x & "','_blank','height=300,width=400,location=no,menubar=no,toolbar=no,status=yes,directories=no,copyhistory=no,resizable=yes');self.close();</script&g

我在vb.net程序中有以下代码:

Response.Write("<script>window.open('./folder/frame.aspx?x=" & x & "','_blank','height=300,width=400,location=no,menubar=no,toolbar=no,status=yes,directories=no,copyhistory=no,resizable=yes');self.close();</script>")
Response.Write(“window.open('./folder/frame.aspx?x=“&x&”,“u blank”,“height=300,width=400,location=no,menubar=no,toolbar=no,status=yes,directories=no,copyhistory=no,resizable=yes”);self.close();)
我希望它能以300x400的窗口打开,但它是全屏打开的

我尝试了它没有高度和宽度,它也打开全屏

我试过这个:

Response.Write("<script>window.open('./folder/frame.aspx?x=" & x & "','_blank','');self.close();</script>")
Response.Write(“window.open”(“./folder/frame.aspx?x=“&x&”、“blank”、”);self.close()”)
它将在同一浏览器中打开一个新选项卡


如何防止此窗口全屏打开?

我一直在四处搜索,发现了一些javascript:

window.moveTo(0,0)
window.resizeTo(screen.availWidth,screen.availHeight);
我注释掉了代码和指定的高度和宽度开始工作