The trouble with NS7.2 and FF1.0.2 appears to be that neither of these late Mozilla based builds will recognize:
event.which
unless it is accessed in the tag of the event that triggers its value. Like:
HTML Code:
<textarea onkeypress="some_func(event.which)">
or even:
HTML Code:
<body onkeypress="some_func(event.which)">
either of the above with:
Code:
function some_func(arg){
alert(arg)
}
but not:
HTML Code:
<body onkeypress="some_func()">
with:
Code:
function some_func(){
alert(event.which)
}
Not even this seems to work:
Code:
<head>
<title>event.which test</title>
<script type="text/JavaScript"><!--
function some_func(arg){
alert(arg)
}
document.onkeypress=some_func(event.which)
//-->
</script>
</head>
Note: these examples only for demonstration in NS7.2 and FF1.0.2, not intended to work in other browsers.
Bookmarks