<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>if(isie){// IE 브라우저 <br>key = window.event.keyCode; <br>ev = window.event; <br>}else{//Firefox <br>key = <br>ev = e; } <br>alert(key); <br>if(key==9){//IE 브라우저 <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>< ;/script> ; <br><br> </div>