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
  • 98,165
  • 25
  • 199
  • 285
DomingoSL
  • 14,920
  • 24
  • 99
  • 173

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
  • 356,200
  • 43
  • 426
  • 500
  • 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,789
  • 3
  • 18
  • 27
0

You can set

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

This applies for all form elements

Harish
  • 2,311
  • 4
  • 23
  • 28