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 7764173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:50:36+00:00 2026-06-01T14:50:36+00:00

So, I need use this event so I can navigate trought blog posts. I

  • 0

So, I need use this event so I can navigate trought blog posts. I use the ‘J’ key to go to the previous post and the ‘K’ key to go to the next post.
My problem is that the event works on the first try but then doesn’t work anymore.
When i restart the browser it works if i press J or K and it redirects me to the previous/next post. But then if I press again it does nothing.

Sorry if I can’t explain it exactly enought and thanks for helping.

$(document).keyup(function (event) {
   if (event.keyCode == 74) {
      var left_link = $('#nav-left a').attr('href');
      alert(left_link);
      if(typeof left_link !== 'undefined' && left_link !== false)
        window.location = left_link;
   } 
   else if (event.keyCode == 75) {
     var right_link = $('#nav-right a').attr('href');
     alert(right_link);
     if(typeof right_link !== 'undefined' && right_link !== false)
       window.location = right_link;
   }
});

Even if I don’t do the redirect and only those alerts it doesn’t work.

  • 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-06-01T14:50:38+00:00Added an answer on June 1, 2026 at 2:50 pm

    There was a problem with the script loading, I applied a delay of 1 second and now it works just fine.

    Thanks anyway.

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

Sidebar

Related Questions

I have a dll that was written in c++, I need to use this
I need a client-side script to confirm that the Timer's OnTick event can proceed.
I need to use this enum in my C# application, but it won't let
I have developed a simple library in Ruby and need to use this in
I have create name range on sheet A so I need to use this
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I need a tool which generates random JSON objects. I want to use this
I need help to use jConfirm with this existing code (php & Jquery &
I need to use hidden variables in my JSP for session tracking. This is
I was following this tutorial . I need to use a php file's ouput

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.