<div class="codetitle"> <span><a style="CURSOR: pointer" data="85665" class="copybut" id="copybut85665" onclick="doCopy('code85665')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code85665"> <br><script type="text/javascript"> <br> document.onkeydown=function(e){ <br>var isie = (document.all) ? true:false; <br>var key; <br>var ev; <br>if(isie){//IE browser <br>key = window.event.keyCode; <br>ev = window.event; <br>}else{//Firefox <br>key = e.which; <br>ev = e; <br> } <br>alert(key); <br>if(key==9){//IE browser <br>if(isie){ <br>ev.keyCode=0; <br>ev.returnValue=false ; <br>}else{//Firefox <br>ev.which=0; <br>ev.preventDefault(); <br>} <br>} <br>}; <br><br>< ;/script> <br> </div>