Uncle Jim's Javascript Designs

Key Press Entry

Author: Jim Stiles

This script example demonstrates the assigning of functions to special keypresses. Any Javascript function can be activated or ran upon pressing a series of preassigned keys in a specific order. For this demonstration, I have assigned the window.location function to be activated if the user types the word javascript. You could also set the function to show an alert as well. If you use this script to have your users access a hidden page, you should place the script in an external file and encrypt it.


INSTALLATION INSTRUCTIONS
COPY - Insert Between Head Tags: <HEAD></HEAD>



Close This Window