string url = "index.aspx";
ClientScript.RegisterStartupScript(this.GetType(), "start", "var win=window.open('" + url + "','','top=0,left=0,scrollbars=no,status=0,directory=0,location=0');var h = screen.availHeight;var w = screen.availWidth;win.resizeTo(w,h);window.opener=null;window.open('','_self');window.close();", true);
这是cs里的一段代码,请问要在js里写的话应该怎么改啊?