2

how can i change the title of message box in java script plese given me a code for that

caitriona
  • 8,569
  • 4
  • 32
  • 36
Naresh
  • 181
  • 1
  • 1
  • 11

2 Answers2

3

You can not change for standard alert() of javascript.

go through this link- http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/

Mayur Birari
  • 5,837
  • 8
  • 34
  • 61
0

If you are using the native alert(), you can't. It is browser implemented.

If using a custom modal, simply change the HTML as you would any other element.

alex
  • 479,566
  • 201
  • 878
  • 984