<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>