Autocompletetype prevents textbox from being "automatically completed"

Source: Internet
Author: User

Original post address:

When surfing the internet, you will find that textbox remembers the text you have input. When you enter the text again next time, it will automatically prompt related words, the most common is that the account password is automatically taken out when a user logs on to the website.
However, Automatic completion is not allowed for security purposes in some projects. We can delete the prompt information in IE's tools → options → content → Auto completion, but this does not solve the problem at all, because this delete operation only deletes the previous one, how can some textbox completely disable this automatic function.

Tests show that textbox has an autocompletetype attribute. The default value is none. If it is none, it is determined based on the client's ie settings. If we set it to disable, then run the program and find that the annoying automatic completion function is completely unavailable.

Autocompletetype has many other values. It selects whether to enable the auto-completion function based on the content entered by the customer. For example, we require that a textbox be automatically completed only when the user inputs an email, then we can set the autocompletetype value to email.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.