In a asp.net page, when click a button, I need generate an url and open it in new tab, I have done this by clientscript, code work fine for IE, but it looks window.open always open a new window instead of tab in chrome. how to make code work for chrome?
var sb = new StringBuilder();
sb.Append("<script type = 'text/javascript'>");
sb.Append("window.open('");
sb.Append(url);
//sb.Append("','_blank');");
sb.Append("');");
sb.Append("</script>");
ClientScript.RegisterStartupScript(this.GetType(), "script", sb.ToString());