Jump to content

How to change pictures with keyboard arrows?

Recommended Posts

What’s a function arrow keyboard key?

the W3 example already has something that could be function arrow keyboard keys.  

Link to post
Share on other sites


We can use the keycode for it.


    if(e.keyCode === 37){ plusSlides(-1) }    //for left arrow
    if(e.keyCode === 39){ plusSlides(1) }     //for right arrow

Hope it helps.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...