Hi
I have the following code in my site, however it is currently not working in firefox could someone please tell me why, thanks in advance
I have the following code in my site, however it is currently not working in firefox could someone please tell me why, thanks in advance
Code:
function buttonpress(button) {
var key = new Array();
key['-'] = "javascript:AddItem()";
isNetscape=(document.layers);
eventChooser = (isNetscape) ? button.which : event.keyCode;
which = String.fromCharCode(eventChooser).toLowerCase();
for (var i in key) if (which == i) window.location = key[i];
}
document.onkeypress = buttonpress;
Comment