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
Table of contents Prerequisites Setting up a test...
1. Introduction This article describes how to use...
As shown below: CSS CodeCopy content to clipboard...
The key is that the local server does not have wr...
<br />How can I remove the scroll bar on the...
After the article "This Will Be a Revolution&...
Table of contents 1 Introduction 2 Trigger Introd...
Preface In daily development, we often need to pe...
Table of contents The effect of mixed inheritance...
Table of contents Case Study Update account balan...
This article is mainly to take you to quickly und...
Table of contents Preface Type Inference Truth va...
This article shares the specific code of Bootstra...
rm Command The rm command is a command that most ...
1. Create a table CREATE TABLE `student` ( `id` i...