Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Link onClick

Syntax onClick="command" The onClick event handler handles the event when the mouse cursor is clicked on the link. <html>     <head>     <title> Using the onClick event handler of the Link object</title>     </head>     <body>     Click the link.     <form name="form1">     <a href="http://www.rntsoft.com" onClick='alert("You clicked the link")'>www.rntsoft.com</a>     <br><br>     </form>     </body>     </html>