I need to use a password box on html page. then i used
<input name="pass" type="password"/>
But when i submit the form firefox ask to remember the password. But this password box used in registration form. So i need to create a password box without asking for remember password.

Dani AI

Generated

This thread shows the usual mix: the browser (not the input) decides whether to offer to save a password, as and noted, and solved the immediate problem by adding the missing autocomplete hint. Cross-browser differences matter, so was right to suggest testing other browsers or systems.

For durable behavior, prefer the HTML autocomplete tokens that tell the browser the field's purpose instead of trying to block saving. Use the specific tokens for sign-up versus sign-in so password managers can make a sensible choice — for example, indicate that a password field is for a new/registration password versus a current/login password. Relying on autocomplete="off" to suppress prompts is unreliable: modern browsers and password managers may ignore it for user convenience and security reasons. See the platform guidance for the exact set of tokens and how browsers use them (MDN autocomplete attribute, ).

Quick troubleshooting checklist: test with saved credentials present, try multiple browsers (Chrome, Firefox, Edge, Safari), keep labels/name attributes consistent so browser heuristics work, avoid hidden or trick fields to defeat autofill, and do not rely on client-side tricks for security. In most cases the best UX is to help—rather than block—password managers, unless there is a specific, documented threat that requires otherwise.

Recommended Answers

All 5 Replies

Why don't you tell Firefox 'Not' to remember?

Yeah I too am thinking this is a browser issue and not a coding one. Although, Im sure if you dug deep enough, you could find a javascript function to prevent passwords from being remembered. DOnt know why you'd want to though, since the whole purpose of that is for users to store their login info so they dont have to keep emailing you for them..lol.

Thanks every one. I got the problem. I did not add the autocomplete tag for the form.
Thanks every one..

Yes sometimes this do happen.Try this code on some browser or some other System i am sure you will not this option.

Please mark this thread as 'Solved'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.