I'm trying to generate a wrong password alert in JavaScript. It is for a web application that works in .NET. This alert works in IE, but we're porting the system and wanted it to work in both IE and Firefox and Chrome.
ClientScript.RegisterStartupScript(this.GetType(), "js", "alert('Senha incorreta para o usuário " + txtLogin.Text + "');", true);