Google Browser Back button input value missing problem

Source: Internet
Author: User

Problem Description:

Product page, there are four input boxes,

After entering a number, click the button to jump to another page, then click on the browser's Back button, the number recorded here will be error (missing a number). Only Google browser This problem, other browsers did not find.

After the investigation, found that there is a sentence JS caused by:

$ (' #searchkey '). attr ('autocomplete ',' off ')

The above search box turns off the auto-completion attribute, which is caused by JS. After the deletion, the problem is resolved.

Possible causes:

Google Browser at the time of loading, determine the number of input, put in the cache, the browser back button click, take the corresponding data into the corresponding input.

and JS Dynamic Autocomplete=off, the browser does not record, so that when the browser cache data, it will also put a piece of data into this input.

Again because this input is JS set to Autocomplete=off, so that his assigned value is not shown. Finally, it looks like the value of input below is missing.

Solution:

1.autocomplete=off write to the attribute of input, do not use JS

2. Or this section JS will be deleted just fine ~

Google Browser Back button input value missing problem

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.