Click here to Skip to main content
15,867,594 members
Articles / Web Development / ASP.NET
Alternative
Tip/Trick

Disable IE/Firefox remember password ?

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
30 Mar 2011CPOL 17.5K   2   4
DescriptionW...

Description


We can turn off autocomplete for textbox by Javascript too.

Code


JavaScript
document.getElementById('txtPassword').setAttribute('autocomplete','off');

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralUseful Tip Pin
karthik Udhayakumar22-May-14 6:55
professionalkarthik Udhayakumar22-May-14 6:55 
GeneralGood one! Pin
Sunasara Imdadhusen6-Apr-11 23:33
professionalSunasara Imdadhusen6-Apr-11 23:33 
GeneralReason for my vote of 5 The original solution is good, but t... Pin
DrABELL30-Mar-11 5:56
DrABELL30-Mar-11 5:56 
GeneralRe: Hmmm no the first solution is for every application, html i... Pin
Remi BOURGAREL4-Apr-11 21:24
Remi BOURGAREL4-Apr-11 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.