W
W
WebforSelf2022-02-28 20:03:42
HTML
WebforSelf, 2022-02-28 20:03:42

How to make the sms code be detected by the browser?

There are 4 inputs of this kind

I want the SMS that comes automatically to be determined as here.
621d0040cdd42550617291.jpeg
What do you need? name tags?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Volodymyr Palamar, 2022-03-10
@WebforSelf

<input
  type="text"
  name="token"
  inputmode="numeric"
  pattern="[0-9]"
  autocomplete="one-time-code"
/>

https://daily-dev-tips.com/posts/html-autocomplete...

N
Nadim Zakirov, 2022-03-01
@zkrvndm

This is impossible, the browser does not have access to SMS and can NOT even request such permission, it does not have such a right. Otherwise, scammers on phishing sites would rip off all the loot from the cards without asking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question