Two ways to prohibit clearing the input text input cache in html

Two ways to prohibit clearing the input text input cache in html

Most browsers will cache input values ​​by default, and only by using ctl+F5 to force refresh can the cache record be cleared.

If you don't want the browser to cache the input value, there are two ways:

Method 1:

Add to the input that you don't want to use cache

XML/HTML CodeCopy content to clipboard
  1. autocomplete = "off" ;eg:
  2. < input   type = "text"   autocomplete = "off"   name = "test"   />   

Method 2:

Add in the form tag where the input is located

XML/HTML CodeCopy content to clipboard
  1. autocomplete = "off" ;eg:
  2. < form   action = "#"   autocomplete = "off" >   
  3. < input   type = "text"   autocomplete = "off"   name = "test"   />   
  4. </ form >   

<<:  Steps to create a CentOS container through Docker

>>:  Pure CSS allows child elements to break through the width limit of parent elements

Recommend

Solve the problem that Docker cannot ping the host machine under Mac

Solution Abandon the Linux virtual machine that c...

We're driving IE6 to extinction on our own

In fact, we wonder every day when IE6 will really...

Sample code using vue-router in html

Introducing vue and vue-router <script src=&qu...

Use of Vue3 pages, menus, and routes

Table of contents 1. Click on the menu to jump 1....

Running PostgreSQL in Docker and recommending several connection tools

1 Introduction PostgreSQL is a free software obje...

Vue implements dynamic routing details

Table of contents 1. Front-end control 1. In the ...

Zabbix monitors mysql instance method

1. Monitoring planning Before creating a monitori...

Using MySQL database with Python 3.4 under Windows 7

The detailed process of using MySQL database with...

Implementation of k8s node rejoining the master cluster

1. Delete node Execute kubectl delete node node01...

Docker realizes the connection with the same IP network segment

Recently, I solved the problem of Docker and the ...

Detailed troubleshooting of docker.service startup errors

Execute the following command to report an error ...