Javascript 'onkey *' events not working in link browser

Does anyone know anything about a link browser? I am developing an application for Links (text mode) that runs on a terminal using Linux. The problem is that none of the key events (down, up, or press) will be logged. Here is the Javascript I am using:

<body onload="Alert()" onkeydown="CheckKey(event.keyCode)">

    <script type="text/javascript">

       function CheckKey(keycode) {
          alert(keycode)
       }

       function Alert(){
           alert("onload is working")
       }  

    </script>

    <!--A table goes here-->

</body>

      

The onload event works fine, so I know Javascript is enabled for the browser, but the onkeydown event does nothing. The problem is, I don't know if it has to do with links, Javascript, or maybe even a limitation of the terminal it runs on. Was there a Javascript version that didn't support onkey events? Just a thought ...

Any help would be appreciated!

+1


a source to share


1 answer


I don't think they will work. The links use key commands for their own navigation, I think it just doesn't pass them to your script.



0


a source







All Articles