Skip to content

Instantly share code, notes, and snippets.

View atatos's full-sized avatar

Mohamed ATATOUSSE atatos

View GitHub Profile
@niksumeiko
niksumeiko / disable-html-form-input-autocomplete-autofill.md
Last active October 8, 2024 10:08
Disable HTML form input autocomplete and autofill

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.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...