6

I use alert box in PHP forms and get something like this;

PHP Alert Box - For eg: The Page at localhost says .. "Your username is invalid"

Is it possible to customize the text "The Page at localhost says"?

flu
  • 14,307
  • 8
  • 74
  • 71
fishspy
  • 123
  • 1
  • 5
  • 14
  • possible duplicate of [How to make a javascript alert NOT say the name of the page?](http://stackoverflow.com/questions/9824885/how-to-make-a-javascript-alert-not-say-the-name-of-the-page) – Ali Oct 22 '14 at 13:58

5 Answers5

6

That's the property of the Browser you're using & You can't modify. Instead You can use a custom javascript alert box.

jQuery Alert Dialog

Jenson M John
  • 5,499
  • 5
  • 30
  • 46
1

No you cannot. javascript alert box title cannot be modified.

Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
0

The javascript alert() is an inbuilt method. And you can not override it. Try jQuery UI Dialog

http://jqueryui.com/dialog/

Pupil
  • 23,834
  • 6
  • 44
  • 66
0

Alert Box Says Can Not Change Because it depends on the browser. In Google Chorme The Alert box properties and firefox the alert box is different. To get rid of this problem you have to use custom alert box. This link may help you. https://www.freshdesignweb.com/jquery-javascript-popup-window.html

Shuvankar Paul
  • 1,124
  • 10
  • 11
0

Alert Box Says Can Not Change Because it depends on the browser. In Google Chorme The Alert box properties and firefox the alert box is different. To get rid of this problem you have to use custom alert box. This link may help you. https://www.freshdesignweb.com/jquery-javascript-popup-window.html

n123
  • 1
  • Welcome n123, could you please add relevant portions of the link directly into your answer? – gmauch Sep 13 '19 at 13:01