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.