2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ChromeとSafariでの入力欄の自動補完を無効にする方法

Posted at

事象

Webサービスにログインする際、Chromeのメールアドレスとパスワードの保存機能を使用すると、意図せぬ箇所に情報が自動補完されることがあります。特に、会員登録画面などでこの現象が発生しました。

対処法

Safariの場合、該当の入力欄にautoComplete="off"を追加することで問題を解消できます。しかし、Chromeではこの方法だけでは効果がありません。Chromeの場合は、autoComplete="new-xxx"を使用することで解消できます。

<input
  type={"email"}
  autoComplete="new-email"
/>
<input
  type={"password"}
  autoComplete="new-password"
/>

自らの備忘録のために投稿してますが、なにかお役に立てましたら幸いです!:clap:
また、なにか間違ってましたらご指摘いただけますと幸いです!:pray:

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?