Home >Web Front-end >HTML Tutorial >html prohibits clearing input text input cache_html/css_WEB-ITnose

html prohibits clearing input text input cache_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:54:431247browse

Most browsers cache the input value by default. Only those who use ctl F5 to force refresh can clear the cache record.

If you don’t want the browser to cache the input value, there are 2 methods:

Method 1:
Add to the input that you don’t want to use caching autocomplete="off";
eg:

Method 2:
In the form tag where the input is located Add autocomplete="off";
eg:



Statement:
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