automatically press keyboard with jQuery?

前端 未结 6 1915
臣服心动
臣服心动 2021-01-19 04:06

Is it possible with jQuery to automatically simulate a press on a keyboard, f.ex. inside an html input field?

As explanation: If I press the a inside an

6条回答
  •  清酒与你
    2021-01-19 04:18

    Nope. Not possible in Javascript to simulate actual keyboard key press. Keyboard keypress involves lot more process which is outside Javascript/Browser.

    Alternatively you can simulate key press event, but I guess you don't want to call the key press.

提交回复
热议问题