Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6957751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:02:54+00:00 2026-05-27T15:02:54+00:00

I am making an HTML slideshow by myself and was able to create most

  • 0

I am making an HTML slideshow by myself and was able to create most of the thing. The place where I am stuck is the keyboard events. That is forward and backward arrow. I need to know how to handle these using JavaScript or JQuery. These button when pressed would trigger an event so as to move to the next slide or go to the previous one. I also want to mention that my slides are also interactive HTML, as in you can fill in data, validate etc using them. SO i dont want the keyboard events to hinder while the user is interacting with the form or other content on the page via Keyboard (eg. Filling in a form,date etc).
How to go about this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:02:56+00:00Added an answer on May 27, 2026 at 3:02 pm

    There are 3 different events for handling keyboard input: keyup, keydown, and keypress. Not all are fired on all keys, and some fire different codes depending on operating system. Check out quirksmode for more info.

    jQuery has corresponding events for each of these.

    From jQuery site:

    Note that keydown and keyup provide a code indicating which key is
    pressed, while keypress indicates which character was entered. For
    example, a lowercase “a” will be reported as 65 by keydown and keyup,
    but as 97 by keypress. An uppercase “A” is reported as 65 by all
    events. Because of this distinction, when catching special keystrokes
    such as arrow keys, .keydown() or .keyup() is a better choice.

    To avoid handling these events when user is interacting with the form, you might want to turn the behavior off any time a form field has focus, and turn it back on when the form fields are blurred. That way, using these arrows to navigate an input field wouldn’t cause slideshow traversal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Setup I'm making an HTML page that replaces the cursor with a div element.
I have a jQuery slideshow code that works fine with the following HTML structure:
I am making an html/javascript browser homepage, that could be downloaded to any computer
I am wondering if there is any technique out there for making HTML code
I have the following HTML (note the CSS making the background black and text
I am making a GWT app based off of an HTML mockup. The mockup
I've got an html page from where Im making this call periodically: function logon(id)
I'm currently making a GWT project where I display some HTML in a RichTextArea
I have a lot of <a> html tags without the href attribute for making
Making an adobe flex ui in which data that is calculated must use proprietary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.