<textarea onkeydown="newScript" >
Example: The below code illustrates to detect that when the user pressed the Alt + h keys on the textarea. It will produce the alert message.
Note: We can also use ASCII code for detecting the keys.
- Before pressing on Alt + h Keys:
- After pressing on Alt + h Keys
Supported Browsers are listed below:
- Google Chrome
- Internet Explorer