E
Eli
Hi,
Since using IFRAMEs in my page, I want to disable the F5 and BackSpace
keys. I got this working on IE but not on Mozilla Firefox:
function CheckKey(evt)
{
evt=(evt)?evt:window.event;
switch (evt.keyCode)
{
case 8: //backspace
case 116: //F5
evt.cancelBubble=true;
evt.returnValue=false;
return false;
}
return true;
}
document.onkeydown=CheckKey;
document.onkeyup=CheckKey;
Does anyone knows how to make this work on Mozilla Firefox?
-thanks, Eli
Since using IFRAMEs in my page, I want to disable the F5 and BackSpace
keys. I got this working on IE but not on Mozilla Firefox:
function CheckKey(evt)
{
evt=(evt)?evt:window.event;
switch (evt.keyCode)
{
case 8: //backspace
case 116: //F5
evt.cancelBubble=true;
evt.returnValue=false;
return false;
}
return true;
}
document.onkeydown=CheckKey;
document.onkeyup=CheckKey;
Does anyone knows how to make this work on Mozilla Firefox?
-thanks, Eli