window.open

来源:互联网 发布:js获取兄弟节点 编辑:程序博客网 时间:2024/06/05 02:58
ClientScriptManager cs = Page.ClientScript;
String csname1 = "PopupScript";
Type cstype = this.GetType();
 
if (!cs.IsStartupScriptRegistered(cstype, csname1))
{
   String cstext1 = "window.open('url','_blank')";
   cs.RegisterStartupScript(cstype, csname1, cstext1, true);
}
0 0