Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

html

passwords

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?

like image 803
DavGarcia Avatar asked Jan 22 '09 07:01

DavGarcia


People also ask

How do I make my browser not remember my password?

Chrome. Click the Chrome menu in the toolbar and choose Settings. Click Passwords. Turn off Offer to save passwords.

What does do not allow autocomplete to save passwords?

Tap on the three dot menu icon. Tap Settings. Tap Save passwords. Slide Save passwords off.

How do I disable the Save password bubble in Chrome using JavaScript?

I want to disable the save password pop-up bubble using JavaScript. How to do this? chrome just made this un-disable-able from html/js, but skipping the name attrib on the input should prevent the pop-up. you will have to add the name in with JS before the form submits.


1 Answers

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.

like image 109
tvanfosson Avatar answered Sep 23 '22 02:09

tvanfosson