Binding event handlers using shortcuts

Click the flower...



The jQuery Code START
    
    <script src="http://code.jquery.com/jquery-latest.js"></script>
  
     <script type="text/javascript">
      $(function(){
        $('#target').click(function(event) {
            alert('Hello!');
          });
      });
    </script>
    
    <style type="text/CSS">
        <!--
        .code { color: red; }
        .back { background-color: yellow; }
        -->
   </style>
  </head>

  <body>
    <h1>Binding event handlers using shortcuts</h1>
    <h1>Click the flower...</h1>
    <img id="target" src="Image1.jpg"/>
    <br /><br />