0
0

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 5 years have passed since last update.

ChromeのログインID、パスワードのプリセットを外す

Posted at

はじめに

Chromeの機能でログインID、パスワードは保存することはできます。
保存するとその以降、入力不要でログインできます。
ただし、新規アカウント作成画面、パスワード変更画面でもプリセットをしてしまう場合もありあす。
このような画面はプリセットがあると、邪魔になります。

autocomplete="off" を設定しても回避できません。

利用者のブラウザから外す

危ないと感じた場合は、Chromeのパスワードの保存機能をOFFにすることで回避できます。
image.png

アプリ側で強制解除

javascriptコードリセット

入力フォーム

<form name="form1" method="post">
  <input type="text" name="emailAddress" id="emailAddress">
  <input type="password" name="password" id="password">
<form/>

例えば一秒後、空白で設定する

setTimeout(function() {
  document.form1.password.value = "";
}, 1000)

readonlyとして初期表示してプリセットされないようにする

<form name="form1" method="post">
  <input type="text" name="emailAddress" id="emailAddress">
  <input type="password" name="password" id="password" readonly  onFocus="this.readOnly = false">
<form/>

フォーカスする際にreadonlyを外します。

以上

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?