Forum Moderators: open
im busy with a simple script that uses javascript and works ok but it does give a javascript error in firefox web-developer.
its says...
window.event has no properties
line 23
and thats.....
Key = (document.layers)?e.which:window.event.keyCode;;
full part is :
document.onkeypress = keyhandler;
function keyhandler(e) {
Key = (document.layers)?e.which:window.event.keyCode;;
if( Key == 13 ¦¦ Key == 32){ //13 is ascii value for Enter key 32 is space
convertor9(); //call your function here
}
if( Key == 27 ¦¦ Key == 8 ){ //27 is ascii value for Escape key 8 = backspace
clearConverse(); //call your function here
}
}
can his be solved?