更改Javascript警报的标题 [英] Change Title of Javascript Alert
本文介绍了更改Javascript警报的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改javascript警告弹出窗口的标题?
How can i change the title of javascript alert popup ?
推荐答案
您不能,这是由浏览器决定的,用户的安全性。例如,你不能让它说检测到病毒,并带有你想现在隔离它吗?的消息......至少不能作为 alert()
。
You can't, this is determined by the browser, for the user's safety and security. For example you can't make it say "Virus detected" with a message of "Would you like to quarantine it now?"...at least not as an alert()
.
有虽然有很多JavaScript模态对话框,远比 alert()
更可定制。
There are plenty of JavaScript Modal Dialogs out there though, that are far more customizable than alert()
.
这篇关于更改Javascript警报的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文