Example for Checkpoint
Example 1: Use a device independent event handler that works with any appropriate input action: in this case, ONFOCUS works with both a keyboard event and a mouse event, so it is considered to be a device independent event handler.
The example is the "script activated button": try clicking on it or tabbing to it. A small alert box should pop up containing a message about the prize. Pressing the Escape key will make it go away.
And here is the code that creates it:
And here is the script that does the work: