Input type=password, don't let browser remember the password

DavGarcia picture DavGarcia · Jan 22, 2009 · Viewed 177.1k times · Source

I remember seeing a way to have an <input type="password" /> such that the browser will not prompt the user to save the password. But I'm drawing a blank. Is there an HTML attribute or some JavaScript trick that will do this?

Answer

tvanfosson picture tvanfosson · Jan 22, 2009

Try using autocomplete="off". Not sure if every browser supports it, though. MSDN docs here.

EDIT: Note: most browsers have dropped support for this attribute. See Is autocomplete="off" compatible with all modern browsers?

This is arguably something that should be left up to the user rather than the web site designer.