Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the title message of an alert box in JavaScript? [duplicate]

Tags:

javascript

How can I change the title message of an alert box in JavaScript?

like image 295
Nitin Jindal Avatar asked Jan 03 '11 07:01

Nitin Jindal


2 Answers

This can not be done using javascript. But this can be done using jQuery. May be this url can help u.

http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/

like image 75
Durga Dutt Avatar answered Nov 14 '22 23:11

Durga Dutt


This cannot be done. The title is browser dependent and you have no control over it. On the other hand you could implement your own alert box using divs and customize it as you like. Here's an example using the jquery dialog plugin.

like image 42
Darin Dimitrov Avatar answered Nov 15 '22 00:11

Darin Dimitrov