Forked from niksumeiko/disable-html-form-input-autocomplete-autofill.md
Created
November 4, 2019 08:58
-
-
Save piihuynh/a5fd477c401deb6ce75f84e52a4ba0a6 to your computer and use it in GitHub Desktop.
Revisions
-
niksumeiko revised this gist
Apr 19, 2019 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,4 @@ ... ```` This formation is going to prevent Chrome and Firefox to offer autofill and autocomplete for all input fields inside the form. -
niksumeiko created this gist
Feb 19, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # Disable HTML Form Input Autocomplete and Autofill 1. Add `autocomplete="off"` onto `<form>` element; 2. Add hidden `<input>` with `autocomplete="false"` as a first children element of the form. ````html <form autocomplete="off" method="post" action=""> <input autocomplete="false" name="hidden" type="text" style="display:none;"> ... ```` This formation is going to prevent Chrome and Firefox to offer autofill and autocomplete for all input fields inside the form. 