Javascript disables Tab key script instances
- 2020-03-29 23:58:48
- OfStack
The code is as follows:
function HandleTabKey(evt) {
if (evt.keyCode == 9) {
if (evt.preventDefault) { evt.preventDefault(); }
else { evt.returnValue = false; }
}
}
Passed the test in IE 6, IE 7, IE 8, FireFox and Chrome.