Scoured the web but can't find a fix:
Code: Select all
<script language='JavaScript' type='text/JavaScript'>
<!--
// val is whatever is passed from pressing a key and is the paramenter of function "disp"
// up-down keys disabled (commented out)
function disp(val){
alert(val);
}
// replace above with the updateTable(val) function; "val becomes the multiplier
document.onkeydown = function() {
switch (window.event.keyCode) {
case 37:;disp('Left key is pressed');break;
case 39:;disp('Right key is pressed');break;
}};
//-->
</script>