javascriptalert

How to edit a JavaScript alert box title?


I'm generating a JavaScript alert with following code in C# .NET page:

Response.Write("<script language=JavaScript> alert('Hi select a valid date'); </script>");

It displays an alert box with the heading title as "Message from webpage".

Is it possible to modify the title?


Solution

  • No, you can't.

    It's a security/anti-phishing feature.