After the mobile page is loaded, the input automatically gets the focus and pops up the soft keyboard automatically. How to eject? the ios automatically gets focus failure.

such as the problem, the need is that after the page is loaded, the input automatically gets the focus and the soft keyboard pops up automatically. The problem now is:
1. Unable to pop up soft keyboard
2.ios iPhone browser cannot automatically get focus (Android is normal)

html is as follows:

 <input autofocus id="mobile"  type="tel" placeholder=""/>

I would like to ask the Great God, is there any other good solution? Thank you!


Daniel from the FastClick team pointed out that there is a problem with the focus of input under IOS:
my colleagues and I have found that iOS will only allow binding functions on other elements to trigger focus events, if the first function call stack is a non-programmatic triggered event. IOS's security mechanism starts to prevent you from triggering the focus event of the input element.
means that if there is no user interaction, iOS will not (trigger the focus event)
can refer to this article
github also has the related issue:iOS does not show keyboard on .focus ()

so you can try the solution: (that is, bind an event to the input box and then trigger it actively)
you can add an extraneous < div id ='- sharptickt' > < / div >

to the page.
  

would you like to add an auto-click event to the input tag? After the page is loaded, click once automatically. Simulating finger clicks, sometimes solving problems can be considered in many ways.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8c219-4e57f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8c219-4e57f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?