开发者

Display a password prompt in Firefox

I'm writing a Firefox extension, and would like to display a password prompt. I don't just want to use the JavaScript prompt function, since it doesn't hide what's being typed. Instead, I'd like to have a p开发者_C百科rompt where the characters typed are replaced with asterisks or dots. Is there some way I can use a built in Firefox password dialog in my extension, or do I have to write my own?


https://developer.mozilla.org/en/nsIPromptService#promptPassword_example, but note that this creates a modal dialog, which are generally annoying.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜