Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to prevent browser autofill an input box? [duplicate]

Tags:

html

forms

Possible Duplicates:
How do you disable browser Autocomplete on web form field / input tag?
Is there a W3C valid way to disable autocomplete in a HTML form?

My browser automatically fills the register form in my website, which is supposed to be anonymous so it's not a very good sign to users to see their names already on the form.

Is there a way to prevent this from happening?

I could take the input box and simply erase it with javascript but I wanted to know if there was another way round. Thanks

like image 559
lisovaccaro Avatar asked Aug 10 '11 19:08

lisovaccaro


1 Answers

<input type="text" autocomplete="off" />

That should work.

like image 140
Joseph Marikle Avatar answered Sep 20 '22 03:09

Joseph Marikle