目次 |
---|
・keyCode ・ファンクションキー(F5)を無効にする |
<html> <head> <title></title> </head> <body> <scripttype="text/javascript"> function a(){ alert(event.keyCode); } </script> <input type"text" onkeydown="a();"> </body> </html>
<script type="text/javascript"> window.document.onkeydown = function (){ // F5を押した場合 if (event.keyCode == 116) { event.keyCode = null; return false; } } </script>