Question

Anyone know anything about the Links browser? I am developing an application for Links (text mode) that is running on a terminal using Linux. The problem is that none of the 'on key' events (down, up, or press) will register. 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 is working fine, so I know that Javascript is enabled for the browser, but the onkeydown event does nothing. The problem is, I don't know if it is an issue with Links, Javascript, or possibly even a restriction of the terminal that it is running on. Was there a version of Javascript that didn't support 'onkey' events? Just a thought...

Any help would be appreciated!

Was it helpful?

Solution

I don't think that they will work. Links uses key commands for it's own navigation, I think that it's just not passing them to your script.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top