Search
 
SCRIPT & CODE EXAMPLE
 

HTML

disabled any key in JS

<html id="page" onkeydown="return false">
	<script>
  		document.addEventListener('keydown', function (event) {
            if (event.key != "Escape") {
                //do anything that you can stop this function here...
            }
        });
  	</script>
  <!-- your codes here! such as <head>... <body> and others...... -->
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: how to use select2 
Html :: add delay to button 
Html :: how to get image on the tab bar html 
Html :: salesforce aura toggle input 
Html :: how to increase width of textbox in html 
Html :: how to add datepicker in bootstrap(html form) 
Html :: disable overscrolling 
Html :: html format date 
Html :: how to clear radio button input when someone types in an input field 
Html :: bootstrap grids examples 
Html :: how to make web page center 
Html :: html not a language 
Html :: how to create accordion effect using built-in HTML tags? 
Html :: html input date min 
Html :: how to set limit of words in input type text 
Html :: what to use for double quotes in html 
Html :: ngForm 
Html :: js open pdf in new tab 
Html :: disable close from screen modal popup 
Html :: selected options with link 
Html :: bootstrap.. 
Html :: fixed size body html 
Html :: negrita html 
Html :: html qr code generator 
Html :: nuxt title page 
Html :: two divs in the same place 
Html :: og tags 
Html :: alert tailwind css 
Html :: is html easy? 
Html :: larger checkbox html 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =