javascript prompt for password (i.e. *******)

前端 未结 4 954
再見小時候
再見小時候 2021-01-14 09:54

I\'m writing a bookmarklet and I need to be able to prompt the user for a \"password\". However, I don\'t want it to be in clear text on screen, so I cannot use prompt.

4条回答
  •  时光说笑
    2021-01-14 10:32

    You can create a floating div on the current page, with a form containing a password field.

提交回复
热议问题