Sometimes we need to have some prompt languages in the login form, such as "enter user name" and "Enter Password". This article introduces the JavaScript implementation input box (Password box) when there is prompt-related knowledge, the js implementation input box prompts friends interested in the relevant knowledge to learn it together. Sometimes we need to have some prompt language in the login form, for example, "Please enter your username" and "Please enter your password". For the username, please enter your 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