Javascript examples for jQuery:Mouse Event
Anchor click handler
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.js"></script> <script type="text/javascript"> $(window).load(function(){/* w w w.j a v a2s. c o m*/ $(document).ready(function () { $('.Trial').click(function () { console.log("User clicked on Trial Object"); }); }); }); </script> </head> <body> <a class="Trial" href="#">Click Me</a> </body> </html>