is it possible to simulate/emulate pressing keyboard button or mouse button in jquery? I'm sure that it is possible, but how to handle it?
You can do:
$('a').trigger('click'); // Mouse click
$(document).trigger('keydown'); // Keyboard
But you will need to add the events in order to be able to trigger them:
$('a').on('click',function() { // do something });
$('document').on('keydown',function() { // do something });
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments