Cross-browser techniques for disabling password caching

前端 未结 5 793
花落未央
花落未央 2020-12-05 20:18

Saving and auto-filing of username/password is a feature of most modern browsers. And the user can generally choose to disable this feature on a per domain basis. But is the

5条回答
  •  再見小時候
    2020-12-05 20:44

    I would imagine that browsers save a form's fields when the form is submitted. What if you used AJAX to get the value of the password field, send it, then clear the field? The form would never actually be submitted, so the browser would, theoretically, never have an opportunity to save the values.

提交回复
热议问题