Hi, im facing a problem i myself created. I disabled some keys so the user could not use them in relation to the browser functions, like tab, backspace, etc. but now i want to let the user use them but only when he is fillin a form, what then do you think i should do to unblock the keys?
Remember that i want to have the keys blocked when the user is not writing in the form.
<script type="text/javascript">
document.onkeypress = block;
document.onkeydown = block;
function block(e){
if ((e.keyCode == 9) || (e.keyCode == 8)){
return false;}}
</script>
Thanks for all help