luc
02-13-2003, 07:50 AM
Hello,
Is it possible to disable or avoid the default browser action when pressing on a key, using the onKeyDown?
i.e. if I try this...
switch(window.event.keyCode)
{
case 114: // Functionkey F3
foo()
break;
}
If I press the F3-key, the function will be executed, but also the default action of my IE6.0 (search) will be triggered. Is it possible to avoid this?
K.R.
Luc
Is it possible to disable or avoid the default browser action when pressing on a key, using the onKeyDown?
i.e. if I try this...
switch(window.event.keyCode)
{
case 114: // Functionkey F3
foo()
break;
}
If I press the F3-key, the function will be executed, but also the default action of my IE6.0 (search) will be triggered. Is it possible to avoid this?
K.R.
Luc