August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onKeyDown="command"
The onKeyDown event handler for the Link object is used to handle the event when a key is pressed down while the focus is on the link.
Listing 7.366 shows how the onKeyDown event handler operates.
<html>
<head>
<title> Using the onKeyDown 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
onKeyDown='alert("You pressed the key DOWN on the link")'>
http://www.mcp.com:80/foo?something#foobar</a>
<br><br>
</form>
</body>
</html>
|
Read now
Unlock full access