<div class="codetitle"> <span><a style="CURSOR: pointer" data="85665" class="copybut" id="copybut85665" onclick="doCopy('code85665')"><u>复制代码</u></a></span> 代码如下:</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浏览器 <br>key = window.event.keyCode; <br>ev = window.event; <br>}else{//火狐浏览器 <br>key = e.which; <br>ev = e; <br>} <br>alert(key); <br>if(key==9){//IE浏览器 <br>if(isie){ <br>ev.keyCode=0; <br>ev.returnValue=false; <br>}else{//火狐浏览器 <br>ev.which=0; <br>ev.preventDefault(); <br>} <br>} <br>}; <br><br></script> <br> </div>