Helpful Information
 
 
Category: Bug reports
Home Hot Key Script All

The Home Hot Key Script All (http://www.dynamicdrive.com/dynamicindex5/button1.htm) demo appears to not work in NS7.2 or FF1.0.1, at least not here.

I figured out an inelegant solution, see this thread:
http://www.dynamicdrive.com/forums/showthread.php?p=6840#post6840
it is for a modified version of the script, as the original is a script generator.

Thanks for the info! I'll have to look into the problem. Confirmed that the generator doesn't work in FF 1.2, not sure about the actual script yet. Either way, I'll have to find the time to see what the problem is.

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:

<textarea onkeypress="some_func(event.which)">
or even:

<body onkeypress="some_func(event.which)">
either of the above with:

function some_func(arg){
alert(arg)
}but not:

<body onkeypress="some_func()">with:

function some_func(){
alert(event.which)
}
Not even this seems to work:

<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.










privacy (GDPR)