How to change the message box title? [duplicate]

匿名 (未验证) 提交于 2019-12-03 01:00:01

问题:

This question already has an answer here:

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

this heading appears in IE.

Do Help...

回答1:

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.



回答2:

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



回答3:

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



回答4:

Sigh...no you can't.

Its a security/anti-phishing feature.

More details

see this

and see this



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!