Link.onKeyDown
JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+ Syntax
onKeyDown="command"
Description
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.
Example
Listing 7.366 shows how the onKeyDown event handler operates.
Listing 7.366 Example of the onKeyDown Event Handler
<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> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.