|
Hi,
I would like to ask if it would be possible to
handle keyboard events in _javascript_. As far as I know it does not work
yet.
For example the following simple page should change
the label of the button.
<html><head><title>test1</title></head>
<script language ="_javascript_">
function init()
{
document.> if (document.layers) { document.captureEvents(Event.KEYPRESS); } } function keyListener(e) { if(!e) { e = window.event; } document.test.pbOk.value=e.keyCode; } </script> <body >
<form name="test", action=""> <p>Please type any key<br> When this script works, the text on the 'OK' button will show the keycode of typed key.</p> <input type="submit" name="pbOk" value="Ok"><br> </form> </body> </html>
I would need it to for ex. show a set of rows
with unique ids (1..9) and it just with typing a key to proper action (show
another page) depending on the "selected" row.
Thanks
Petr
|
_______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
