javascript PHP 警报框 - 本地主机上的页面说
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18974704/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHP Alert Box - The Page at localhost says
提问by fishspy
I use alert box in PHP forms and get something like this;
我在 PHP 表单中使用警告框并得到类似的结果;
PHP Alert Box - For eg: The Page at localhost says .. "Your username is invalid"
PHP 警报框 - 例如: The Page at localhost says .. "Your username is invalid"
Is it possible to customize the text "The Page at localhost says"?
是否可以自定义文本“本地主机上的页面说”?
回答by Jenson M John
That's the property of the Browser you're using & You can't modify. Instead You can use a custom javascript alert box.
这是您正在使用的浏览器的属性,您无法修改。相反,您可以使用自定义 javascript 警报框。
回答by Shankar Damodaran
No you cannot. javascript
alert box title cannot be modified.
你不能。javascript
警告框标题不能修改。
回答by Pupil
The javascript
alert()
is an inbuilt method. And you can not override it.
Try jQuery UI Dialog
这javascript
alert()
是一个内置的方法。你不能覆盖它。尝试 jQuery UI 对话框
回答by Shuvankar Paul
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
警告框说不能更改,因为它取决于浏览器。在 Google Chorme 中的 Alert box 属性和 firefox 中的 alert box 是不同的。要摆脱这个问题,您必须使用自定义警报框。此链接可能对您有所帮助。 https://www.freshdesignweb.com/jquery-javascript-popup-window.html
回答by n123
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
警告框说不能更改,因为它取决于浏览器。在 Google Chorme 中的 Alert box 属性和 firefox 中的 alert box 是不同的。要摆脱这个问题,您必须使用自定义警报框。此链接可能对您有所帮助。https://www.freshdesignweb.com/jquery-javascript-popup-window.html