标签云

微信群

扫码加入我们

WeChat QR Code

I'm developing a website. I'm using a single-page web-app style, so all of the different parts of the site are AJAX'd into index.php. When a user logs in and tells Firefox to remember his username and password, all input boxes on the site get auto-filled with that username and password. This is a problem on the form to change a password. How can i prevent Firefox from automatically filling out these fields? I already tried giving them different names and ids.

Edit: Someone has already asked this. Thanks Joel Coohorn.


works like a charm.

2018年08月14日49分52秒

That did not work for me. But the following answer worked for me http://stackoverflow.com/a/26156376/4601322

2018年08月15日49分52秒

The hidden field is quite nice although its for FF only. Still the only solution if working with Angular. The web-docu does not work :-/

2018年08月14日49分52秒

I agree about the bookmarking and back button, but it's not my choice :(

2018年08月14日49分52秒