jkr137 jkr137 - 5 months ago 41
Javascript Question

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!


This will do it:

$(document).ready(function() {
    var e = $.Event('keydown', { keyCode: 39 });// right arrow key