How to tell the browser not to cache/preserve input values with HTML?

Spread the love

Sometimes, we want to tell the browser not to cache/preserve input values with HTML.

In this article, we’ll look at how to tell the browser not to cache/preserve input values with HTML.

How to tell the browser not to cache/preserve input values with HTML?

To tell the browser not to cache/preserve input values with HTML, we set the autocomplete attribute to off.

For instance, we write

<form autocomplete="off">...</form>

to set the autocomplete attribute to off to stop the browser from saving past input values in the form.

Conclusion

To tell the browser not to cache/preserve input values with HTML, we set the autocomplete attribute to off.

Leave a Reply

Your email address will not be published. Required fields are marked *