<script type="text/
javascript">
document.onkeydown=function(e){
var isie = (document.all) ? true:false;
var key;
var ev;
if(isie){//ie浏览器
key = window.event.keycode;
ev = window.event;
}else{//火狐浏览器
key = e.which;
ev = e;
} // www.jb200.com
alert(key);
if(key==9){//ie浏览器
if(isie){
ev.keycode=0;
ev.returnvalue=false;
}else{//火狐浏览器
ev.which=0;
ev.preventdefault();
}
}
};
</script>