Input type=password, don't let browser remember the password

前端 未结 14 1478
孤城傲影
孤城傲影 2020-11-28 05:04

I remember seeing a way to have an such that the browser will not prompt the user to save the password. But I

14条回答
  •  庸人自扰
    2020-11-28 05:23

    I've found the following works on Firefox and Chrome.

    All of these are within the forms section. "person" and "mypswd" are what you want, but the browser will save "userid" and "passwd" once, and never again since they don't change. You could eliminate the "person" field if you don't really need it. In that case, all you want is the "mypswd" field, which could change in some way known to the user of your web-page.

提交回复
热议问题