0

I'm testing my website on Google Chrome and saw that this browser always auto-fills my username and password text boxes, even if I never said to do that. I don't want this behavior. Is there any way to stop this using PHP, CSS or JavaScript?

Sparky
  • 96,628
  • 25
  • 194
  • 277
DomingoSL
  • 14,282
  • 22
  • 92
  • 171

3 Answers3

3

You can specify autocomplete="off" on the fields you don't want auto-filled, but honoring that is up to the browser and isn't supported everywhere:

<input type="text" name="something" autocomplete="off" />
Marc B
  • 348,685
  • 41
  • 398
  • 480
  • Fyi, this is a non-standard attribute. It works, but non-standard...not that it really matters. – Kris Jan 25 '11 at 18:18
0

No, this is a browser feature and you should be able to turn it off.

Kris
  • 1,788
  • 3
  • 18
  • 27
0

You can set

<form name="form1" autocomplete="off" action=""></form>

This applies for all form elements

Harish
  • 2,263
  • 4
  • 22
  • 28