What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-04 11:05:22
How to find out what character key is pressed?#key#keyCode#code
<table> <tr><td>Key:</td><td id="key"></td></tr> <tr><td>Key Code:</td><td id="keyCode"></td></tr> <tr><td>Event Code:</td><td id="... Add solution -
TypeScript 2022-02-03 00:25:56
how to restrict alphabets in input field in angular
phoneKeyDown(e){ const keyCode = e.keyCode; if (( (e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) && e.keyCode !=8) { e.preventDefault(); } } // IN HTML <ion-inpu... Add solution -
Javascript 2021-10-29 02:28:11
disable inspector
/* It's possible, but this would block the following commands: * Right Click (entirely!) * F12 * Ctrl + Shift + I * Ctrl + Shift + J * Ctrl + Shift + C * Ctrl + U */ // Right click <body oncontextmenu="return false"> // Keys docume... Add solution