Menu
Hi folks,
I need your help!!
I’m working in a page inside an iframe.
I need to get the user keyboard pressure (ex. F5).
This is my script:
document.onkeydown = function (e){
var intKey = 0;
e= (window.event)? event : e;
intKey = (e.keyCode)? e.keyCode: e.charCode;
switch(intKey) {
case 116: //F5
cambiaAppn();
intKey = 0;
return false;
break;
default:
break;
}
}
In this case cambiaAppn() function is executed but, at the end, browser refresh is executed also with very bad effect!!!
It looks only IE behaviour (Firefox looks good).
Can you help me please?
Thanks in advance.
Stefano