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