Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm generating a JavaScript alert with following code in C# .NET page:

C#
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 ?
Posted
Updated 26-Aug-13 23:20pm
v2

For the security and safety of the user, you can't: websites would be able to abuse it by writing "Virus found on computer" or something like that.

You can use the jQuery UI dialog[^]. It's possible to modify the title of the dialog.
 
Share this answer
 
For create custom javascript dialog you can visit
jsfiddle.net
[^]
It will show you how easily you can use dialog with example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900