Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am using this function to load data when i press down key of my keyboard but problem is when i press up key its not moving up please help


window.onkeydown = keydown;
      function keydown() {
          window.scrollBy(0, 10);
         if ($(window).scrollTop() == $(document).height() - $(window).height()) {
             CallWebService();
         }
      }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900