Prompt _ JavaScript skills in the javascript implementation input box (Password box)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.