在提示框中输入密码类型的输入 [英] Placing an input of type password in prompt box
本文介绍了在提示框中输入密码类型的输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello guys
我知道这可能是一个愚蠢的问题,但毕竟我必须确定。
我可以在提示框中添加输入密码类型吗?
提示框是javascript的弹出框之一。(提醒,确认和提示)
Hello guys I know that is probably a stupid question but i had to be sure after all. Can i add an input of type password in a prompt box? prompt box is a one of javascript's Popup boxes.(Alert,Confirm and Prompt)
推荐答案
不,你可以't。
弹出窗口受浏览器控制,无法更改。
The popup is browser controlled and can't be changed.
作为文档显示,您只能提供消息和默认文本。
As the documentation shows, you can only supply a message and default text.
您可以使用javascript创建自己的叠加层,模拟提示弹出窗口。
You can use javascript to create your own overlay that simulates a prompt popup.
查看jQuery用户界面对话了解想法和示例。
See the jQuery UI Dialog for ideas and examples.
这篇关于在提示框中输入密码类型的输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文