12

How do you turn this off browser suggestions on html input?

Dharman
  • 30,962
  • 25
  • 85
  • 135
Fast Arrows
  • 259
  • 2
  • 11

3 Answers3

14

Just use autocomplete on your inputs:

autocomplete="off"

Something like:

<input type="text" autocomplete="off">

You can always switch back to autocomplete="on" when required.

mikemaccana
  • 110,530
  • 99
  • 389
  • 494
Aniket Sahrawat
  • 12,410
  • 3
  • 41
  • 67
2
<input type="text" class="form-control" autocomplete="off" />
Mahmod Abu Jehad
  • 167
  • 2
  • 14
1

According to Mozilla developer documentation the form element attribute autocomplete prevents form data from being cached in older browsers.

<input type="text" name="foo" autocomplete="off" />

The password manager always prompts if it wants to save a password. Passwords are not saved without permission from the user.

We are the third browser to implement this change, after IE and Chrome.

TarangP
  • 2,711
  • 5
  • 20
  • 41