Close the browser input box automatically padded compatible ie,ff,chrome and other mainstream browser _javascript tips

Source: Internet
Author: User

Firefox and IE's browser to achieve the input history of the function, can simplify the trouble of input, but sometimes pop-up drop-down box will block the page display content, and in some cases also do not need to record the input box, such as the number of query input box, Users do not query the same number multiple times, there is no need to let the browser record.

MSIE has customized the extended attribute AutoComplete of input, and set it to off

<input type= "text" autocomplete= "Off" id= "number"/>

Using this method to mask Msie,firefox,chrome,opera, you need to use another extended property Disableautocomplete

<input type= "text" Disableautocomplete id= "number"/>

Two extended properties can be used at the same time, and the browser will automatically parse according to its own characteristics.

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: info-contact@alibabacloud.com 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.