Prevent chrome from autofilling creditcard info

后端 未结 2 1747
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 13:42

I have a on my checkout form, and somehow Chrome thinks that this field is a credit card expiration month.

相关标签:
2条回答
  • 2020-12-20 13:57

    I know this question has already been answered, but I'm going to put my two cents in anyway.

    Another way to do this(as far as I know), is when making the <input> fields in your HTML document, just don't add the type="ipsum dolor amet" argument. Then Chrome, or any other browser, won't know what's what and will stay out of it.

    0 讨论(0)
  • 2020-12-20 14:07

    Add autocomplete="nope", to your input tag if you don't want it to auto-populate with anything. The browser will try to process it and since nope is not an acceptable option for it the browser will give up on processing it.

    See - https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Disabling_autocompletion.

    0 讨论(0)
提交回复
热议问题