Home > Web Front-end > JS Tutorial > Turn off automatic completion of browser input boxes, compatible with IE, FF, Chrome and other mainstream browsers_javascript skills

Turn off automatic completion of browser input boxes, compatible with IE, FF, Chrome and other mainstream browsers_javascript skills

WBOY
Release: 2016-05-16 17:00:40
Original
1264 people have browsed it

Firefox and IE browsers each implement the input history function, which can simplify the trouble of inputting. However, sometimes the pop-up drop-down box will block the page display content, and in some cases, there is no need to enter the input history. Box for recording, such as the input box for number query. Users will not query the same number multiple times, so there is no need for the browser to record it.

MSIE has customized the extended attribute autocomplete of input, just set it to off

Using this method to block MSIE, Firefox, chrome, and opera, you need to use another extended attribute disableautocomplete

The two extension attributes can be used at the same time, and the browser will automatically parse them according to its own characteristics.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template