2

enter image description here

How to change the title of this message box in asp.net?

this heading appears in IE.

Do Help...

Chetter Hummin
  • 6,687
  • 8
  • 32
  • 44
user2046904
  • 73
  • 1
  • 2
  • 7
  • 1
    Obligatory jQueryUi alternative; http://jqueryui.com/dialog/#modal-confirmation – Alex K. Mar 08 '13 at 11:56
  • I have added a working example to the original question (https://stackoverflow.com/questions/1905289/how-to-edit-a-javascript-alert-box-title/50252295#50252295) using jqueryui-dialog if anyone interested. – justMe May 09 '18 at 11:34

4 Answers4

3

You cannot. There is no API to do this and the default title is an anti-phishing security feature.

If you want that much control over the appearance of your alert messages, then you will have to build your own in the DOM instead of using native ones.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
3

You can't change javascript message box title. check this out:
How to edit a JavaScript alert box title?

I recommend you to use custom message box instead of alert();.
For example you can use some jquery plugins like:
Stylish JavaScript Dialog (Alert, Confirm, Prompt) Boxes
or
Dialog Jquery UI

Community
  • 1
  • 1
Siamak Motlagh
  • 5,028
  • 7
  • 41
  • 65
2

You can't, this is determined by the browser, for the user's safety and security.If really want that use jQuery dialog boxes.

PSR
  • 39,804
  • 41
  • 111
  • 151
2

Sigh...no you can't.

Its a security/anti-phishing feature.

More details

see this

and see this

Community
  • 1
  • 1