Use this function to disable certain keys. This essentially tells the page to cancel the last event, e.g. the pressing of that certain key.
In this demo, the CAPS LOCK key is disabled. Try to press it.
- Created by: Ryan Cooper
- Web Site: http://www.ryancooper.com/
- Posted: January 18, 2008
Paste this source code into the designated areas.
Paste this code into the
HEAD section of your HTML document.