DomingoSL
DomingoSL

Reputation: 15504

How to block Chrome from auto-filling text boxes?

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?

Upvotes: 0

Views: 1628

Answers (3)

Harish
Harish

Reputation: 2324

You can set

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

This applies for all form elements

Upvotes: 0

Marc B
Marc B

Reputation: 360842

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" />

Upvotes: 3

Kris
Kris

Reputation: 1840

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

Upvotes: 0

Related Questions