Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript disable enter key

<script type="text/javascript">
window.addEventListener('keydown',function(e){if(e.keyIdentifier=='U+000A'||e.keyIdentifier=='Enter'||e.keyCode==13){if(e.target.nodeName === 'INPUT' && e.target.type !== 'textarea'){e.preventDefault();return false;}}},true);
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: find label jquery 
Javascript :: javascript how to create an array from 1 to 100 
Javascript :: document.addEventListener("load", function () { 
Javascript :: javascript get filename from url 
Javascript :: get page resolution jquery 
Javascript :: change firebase region 
Javascript :: wordpress echo admin ajax url 
Javascript :: js get timezone name 
Javascript :: regex valid day 
Javascript :: jquery back button event 
Javascript :: javascript change string at particular index 
Javascript :: if is array javascript 
Javascript :: javascript fetch api post 
Javascript :: last query prisma 
Javascript :: react import font awesome 
Javascript :: js get mouseclick 
Javascript :: how to set session storage in javascript 
Javascript :: unset radio button jquery by name 
Javascript :: confirm delete message in jquery 
Javascript :: Typography material ui import 
Javascript :: detect os javascript 
Javascript :: unsafe value used in a resource URL context 
Javascript :: jquery how to know if element is visible 
Javascript :: express request path 
Javascript :: js crpyto generate safe token 
Javascript :: rm rf node modules 
Javascript :: mongoose timestamps 
Javascript :: jquery post upload file 
Javascript :: nodejs delete folder recursively 
Javascript :: regex to extract valid http or https 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =