Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Link onKeyPress

The onKeyPress event handler handles the event when a key is pressed when the focus is set 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.rntsoft.com onKeyPress='alert("You pressed the key on the link")'>     www.rntsoft.com</a>     <br><br>     </form>     </body>     </html>