Auto arrow (right) key press event?
问题 Is it possible to create an auto key press event? I want to flip a book once automatically after refreshing the site? Thanks in advance! 回答1: This will do it: $(document).ready(function() { var e = $.Event('keydown', { keyCode: 39 });// right arrow key $(document).trigger(e); }); References: JS trigger keydown event Is it possible to simulate key press events programmatically? Trigger a keypress/keydown/keyup event in JS/jQuery? 回答2: This solved the problem: $(window).load(function() { var e