最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - auto complete off is not working on edge browser - Stack Overflow

programmeradmin3浏览0评论

I am trying to submit the form but It won't. It is auto-fill the input area after submitting once. However, after auto-fill the input it does not enable the submit button.

As it works on the rest of the browsers.

I have tried to add autocomplete off attribute in form tag as well as input tag but no luck.

<form autocomplete="off" ....````

I am trying to submit the form but It won't. It is auto-fill the input area after submitting once. However, after auto-fill the input it does not enable the submit button.

As it works on the rest of the browsers.

I have tried to add autocomplete off attribute in form tag as well as input tag but no luck.

<form autocomplete="off" ....````

Share Improve this question asked Nov 4, 2019 at 13:12 Rahul ShindeRahul Shinde 1883 silver badges14 bronze badges 1
  • Try to use the autocomplete attribute in input tags. It will help you. Thanks – Mohit Sidoliya Commented Nov 4, 2019 at 13:45
Add a comment  | 

3 Answers 3

Reset to default 17

This works, but not the way that you think it does.

Officially it should be: autocomplete="off".

However many browsers bizarrely ignore this. Therefore it's best to just put some random string on the autocomplete section like:

autocomplete="autocomplete_off_randString"

Note that make sure the autocomplete value for each input is different (use JavaScript). Hence the random string at the end. Or else you may get suggestions from fields with the same autocomplete value.

try to use autocomplete="new-password"as describe here

in edge worked for me autocomplete="false" readonly onfocus="this.removeAttribute('readonly');" / according to this https://stackoverflow.com/a/30344707/14913109

发布评论

评论列表(0)

  1. 暂无评论