Is there a way to prevent the browser from automatically populating the input window?

Possible duplicates:
How to disable browser autocomplete in the web form field / input tag?
Is there a valid W3C way to disable autocomplete in HTML form?

My browser automatically fills out the registration form on my website, which should be anonymous, so this is not a good sign for users to see their names already on the form.

Is there any way to prevent this?

I could take an input field and just erase it using javascript, but I wanted to know if there is another way. Thanks

+6
source share
1 answer
<input type="text" autocomplete="off" /> 

That should work.

+10
source

Source: https://habr.com/ru/post/894753/


All Articles