Note: In web development, after adding autocomplete="off" to the form, IE and FF will not prompt to save the password. However, when logging into the system with the Chrome browser, a prompt to automatically save the password will pop up. From a security perspective, this browser function needs to be disabled to improve system security. Most browsers determine the password field based on the form field type="password", so for this situation, you can use the method of "dynamically setting the password field": Copy code The code is as follows:<input type="text" name="password" onfocus="this.type='password'" autocomplete="off"/> Explanation: This document box becomes a password field only when it gets the focus. It has been tested that this method is simple and effective, and can disable the prompt box in the Chrome browser that prompts you to save passwords. Note that onfocus="this.type='password'" cannot be recognized on IE. Compatibility needs to be considered and it can be handled when the web page is initialized. For IE browser, after using type="password" autocomplete="off" on the input tag, the browser will not prompt to remember the password. |
<<: Vue3+Element+Ts implements basic search reset and other functions of the form
Overview UNION The connection data set keyword ca...
This article example shares the specific code of ...
Table of contents Basic description AST parsing R...
Preface Learn to create a file system on your sys...
In general guestbooks, forums and other places, t...
Placing a search box in the top menu bar is a com...
Operation effect html <head> <meta chars...
background I talked to my classmates about a boun...
I’ve always preferred grayscale images because I t...
It is very easy to delete data and tables in MySQ...
This article example shares the specific code of ...
introduce Setting up read-write separation for th...
Overview Today I will mainly share how to correct...
Preface In MySQL, cross-database queries are main...
Preface During development, we often encounter va...