Catch Character Cap A

[Total: 0    Average: 0/5]

This will catch just one chacter – A (uppercase)

Body Code:

<SCRIPT language=JavaScript>
function click() {
/* IE only */
if ((event.shiftKey==true) && (window.event.keyCode==65)) 
alert('Shift + A were pressed !');
}
document.onkeypress=click
</SCRIPT>
Type 'Shift + a'.<br>
If it doesnt work check 'Caps Lock' at Your computer.

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *