<div class="codetitle"> <span><a style="CURSOR: pointer" data="7217" class="copybut" id="copybut7217" onclick="doCopy('code7217')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code7217"> <br>/*禁止頁面刷新*/ <br>document.onkeydown = function () <br>{ <br>if(event.keyCode==116) { <br>event.keyCode=0; <br>event.returnValue = false; <br>} <br>} <br>document. oncontextmenu = function() {event.returnValue = false;} <br>/* 結束*/ <br> </div>