In order to achieve better user experience, we will have some language prompts when logging on to the form, such as "enter user name" and "Enter Password, the following small series will share with you how JavaScript prompts in the password box through this article, if you are interested in js Password box prompts, learn it together. Sometimes we need to have some prompt languages in the login form, such as "Enter the user name" and "enter the password, the user name is easy to say, but it is a little troublesome to enter the password in the password box, because the entered content in the password box is not displayed in an explicit code. If the type attribute is dynamically controlled, there will be compatibility issues. If the input already exists in the page, the type attribute is read-only in IE8 and IE8 browsers. So you have to find another method. The Code is as follows:
Foot home