title: Add more behavior to existing onclick attribute in javascript
body: <p><br>
  how can i add more behaviour to existing onclick events e.g.
  if the existing object looks like</p>
  
  <pre><code>&lt;a href="http://abc" onclick="sayHello()"&gt;link&lt;/a&gt;
  &lt;script&gt;
  function sayHello(){
      alert('hello');
  }
  
  function sayGoodMorning(){
      alert('Good Morning');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>how can i add more behavior to the onclick that would do also the following</p>
  
  <pre><code>alert("say hello again");
  sayGoodMorning()
  </code></pre>
  
  <p>Best Regards,
  Keshav</p>