1 Reply Latest reply on Jun 29, 2010 12:55 AM by LacioDrom

    Managing keysDown in html.template.html

    LacioDrom

      function documentOnKeyDown()

      {

           alert(event.keyCode);

      }

       

      <script language="javascript" for="document" event="onkeydown">

          documentOnKeyDown()

      </script>

       

        • 1. Re: Managing keysDown in html.template.html
          LacioDrom Level 1

          Hi everyone,

           

          I'm trying to catch keyDown events from html.template.html using JavaScript:

           

          function documentOnKeyDown()

          {

               alert(event.keyCode);

          }

           

          <script language="javascript" for="document" event="onkeydown">

              documentOnKeyDown()

          </script>

           

           

          ...but I can catch only TAB key...I can't catch all others keys....why?!? 

           

          Thanks!!!