How to Implement JavaScript in text box (Password box) Input prompt _ javascript skills

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

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.