Skip to content

Instantly share code, notes, and snippets.

@nijjwal
nijjwal / disable-enter-key.html
Created January 3, 2016 22:46
Disable enter key in JavaScript
<!DOCTYPE html>
<html>
<head>
<title>Disable Key in JavaScript</title>
<script>
function noenter(e) {
//1. window is an object that represents an open window in a browser.
//2. event is an action that can be detected by javascript.
//Sometimes we want to execute a JavaScript when an event