Prevent keyboard from popping on textbox focus/click in iPad webapps

后端 未结 7 1213
孤街浪徒
孤街浪徒 2021-02-08 10:36

I am trying to create a custom keyboard on an iPad application. But each time the input get the focus, the native iPad keyboard pops up. How can I prevent this, in JavaScript.

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-08 11:00

    I don't think you can prevent the keyboard from appearing on input fields. However you could create an html element that looks just like an input field with CSS and handle the onClick event to show your custom keyboard.

    
    
    
    Name: 

    You should checkout Sencha Touch for developing Web Apps for iOS devices.

提交回复
热议问题