开发者

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

开发者 https://www.devze.com 2023-02-02 18:40 出处:网络
This question already has answers here: How to edit a JavaScript alert box title? (10 answers) Closed 3 years ago.
This question already has answers here: How to edit a JavaScript alert box title? (10 answers) Closed 3 years ago.

How开发者_StackOverflow中文版 can I change the title message of an alert box in JavaScript?


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/


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.


I am pretty sure this is outside of your control and can not be changed


This earlier question has some good suggestions in the answers : how-to-edit-a-javascript-alert-box-title

0

精彩评论

暂无评论...
验证码 换一张
取 消