Browser features remember account number and password resolution (HTML resolution method)

Source: Internet
Author: User

1. Use the new feature of HTML5 in the input tag autocomplete= "off" note: no use for chrome. Other browsers didn't try.

2, if it is an input box after the current input tag (must be close to the back, otherwise, do not know the reason, people who know, please tell me why) write <input type= "text" style= "Display:none;" /> (Visiblity:hidden is also available here, but takes up a certain pixel space).

If it is two input boxes, for example:

<input type= "text" name= "Accout"/>

<input type= "password" name= "password" >

It's like this. Just between two tags add <input type= "text" style= "Visibility:hidden;" /> (note here with Display:none; it's not good to make.) I don't know why ... -.-|| please inform);

3, there is <input type= "password" name= "password" > changed to <input type= "text" onfocus= "this.type= ' Password '" name= " Password "/> does not show a default password when entering this page, but when you enter a length that is less than the remembered password, the browser will automatically supplement it (I do not know if the password is overwritten). Does not solve the real problem.

4, there are other people said JS method, I tried to chrome no use ...

So the practical method I'm testing now is 2 and 31. Visual inspection of most browsers can solve this problem.

I do not know whether there is a better solution ....

Browser features remember account number and password resolution (HTML resolution method)

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.