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?
            Asked
            
        
        
            Active
            
        
            Viewed 1,619 times
        
    3 Answers
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
            
            
        You can set
<form name="form1" autocomplete="off" action=""></form>
This applies for all form elements
        Harish
        
- 2,311
 - 4
 - 23
 - 28