Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

dom key event shift is pressed

<html>
<head>
<title>shiftKey example</title>

<script type="text/javascript">

function showChar(e){
  alert(
    "Key Pressed: " + String.fromCharCode(e.charCode) + "
"
    + "charCode: " + e.charCode + "
"
    + "SHIFT key pressed: " + e.shiftKey + "
"
    + "ALT key pressed: " + e.altKey + "
"
  );
}

</script>
</head>

<body onkeypress="showChar(event);">
<p>Press any character key, with or without holding down
 the SHIFT key.<br />
You can also use the SHIFT key together with the ALT key.</p>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: error: bundling failed: Error: Unable to resolve module react-native-community/toolbar-android 
Javascript :: reactjs checkbox 
Javascript :: remove empty or whitespace strings from array javascript 
Javascript :: nuxt router go back 
Javascript :: create array number javascript 
Javascript :: checkbox click event jquery 
Javascript :: javascript object toarray 
Javascript :: PayloadTooLargeError: request entity too large 
Javascript :: jquery on event snippet 
Javascript :: javascript play sound onclick 
Javascript :: mac install jmeter 
Javascript :: normalize css cdn 
Javascript :: how to change input required message react 
Javascript :: Check if a JavaScript string is a URL 
Javascript :: https package node post request 
Javascript :: como remover uma variável de um json 
Javascript :: window onload javascript 
Javascript :: javascript get last character of string 
Javascript :: canvas resize canvas 
Javascript :: capturar el valor de un input con jquery 
Javascript :: nuxt 18 mountend route push 
Javascript :: If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. 
Javascript :: react copy to clipboard 
Javascript :: sweet alert 2 do action on confirm 
Javascript :: javascript find parent with class 
Javascript :: javascript date set time 23 59 59 
Javascript :: javascript array unique values 
Javascript :: destroy chart js 
Javascript :: go to previous page 
Javascript :: import formik 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =