Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I suppress firefox password field completion?

Tags:

html

firefox

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.

like image 442
Christian Oudard Avatar asked Sep 08 '08 18:09

Christian Oudard


1 Answers

From Mozilla's documentation

<form name="form1" id="form1" method="post" autocomplete="off"
  action="http://www.example.com/form.cgi">
[...]
</form>

http://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion

like image 57
Ryan Lanciaux Avatar answered Sep 25 '22 03:09

Ryan Lanciaux