How to edit a JavaScript alert box title? Ask Question

How to edit a JavaScript alert box title? Ask Question

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?

ベストアンサー1

No, you can't.

It's a security/anti-phishing feature.

おすすめ記事