August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onKeyPress="command"
The onKeyPress event handler for the Link object is used to handle the event when a key is pressed when the focus is set on the link.
Listing 7.367 shows how the onKeyPress event handler is used. The onKeyPress event handler is invoked any time a key is pressed on the link.
<html> <head> <title> Using the onKeyPress event handler of the Link object</title> </head> <body> Click the link. <form name="form1"> <a href=http://www.mcp.com:80/foo?something#foobar onKeyPress='alert("You pressed the key on the link")'> http://www.mcp.com:80/foo?something#foobar</a> <br><br> </form> ... |
Read now
Unlock full access