Menu
I have a coe to disable F8 key, but it only applies to the particular page. And within the page, I had embeded a pdf file, the problem now is when I highlight on the pdf file within the page, the F8 is not disabled. It only applies outside the embeded pdf but within the page.
So, I was thinking is there a way to disable F8 across windows with code, I do not want to use any software.
[CODE]document.attachEvent(“onkeydown”, my_onkeydown_handler);
function my_onkeydown_handler()
{
switch (event.keyCode)
{
case 119 : // ‘F5’
event.returnValue = false;
event.keyCode = 0;
window.status = “F8 is disabled”;
break;
}
}
Thanks.