Click to See Complete Forum and Search --> : Disable Tab key


Charles Olivier
10-15-2003, 09:01 AM
How can I disable the Tab key of a keyboard on a specific web page? Where can I find the key numbers for all the keys on a keyboard for IE and Netscape?

pyro
10-15-2003, 09:04 AM
Take a look at http://www.infinitypages.com/research/keycode.htm to get the code, and then use code along the same lines to return false when the tab key is pressed.

requestcode
10-15-2003, 09:06 AM
Not sure if you can disable the tab key, but here is a little script that will display the ASCII code in the status bar when pressed.
<html>
<head>
<title>TEST Key Press</title>
<script language="JavaScript">
IE5=document.all? 1:0
function dispkey(e)
{
whKey = !IE5? e.which:event.keyCode; // check for NS4 and NS6
window.status=whKey // Display ascii code in status bar
}
</script>
</head>
<body onKeyPress="dispkey(event)">

</body>
</html>