开发者

Display a password prompt in Firefox

开发者 https://www.devze.com 2022-12-10 03:37 出处:网络
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

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

精彩评论

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