Hello guys
I have a frameset within a .HTA document where I want to stop users from certain keys as e.g. F5. I have created a script within the FORM, but since I have a lot of forms I am hoping to set this up on the Framelevel (globally) and make it work for all forms. I see that onkeypress,down,release does not work for frame, but maybe there is possible to have a script working globally?
my script looks like this:
and works great within a form.
Thanks in advance
Thor
I have a frameset within a .HTA document where I want to stop users from certain keys as e.g. F5. I have created a script within the FORM, but since I have a lot of forms I am hoping to set this up on the Framelevel (globally) and make it work for all forms. I see that onkeypress,down,release does not work for frame, but maybe there is possible to have a script working globally?
my script looks like this:
Code:
function keychk() {
if ( (event.altKey) || (event.keyCode == 9) )return true;
if (event.keyCode == 9) return true;
if (event.keyCode == 116) return false;
if (event.keyCode == 117) return false;
if (event.keyCode == 121) return false;
return true;
}
Thanks in advance
Thor