title: How to use multiple functions in single html dom event?
body: <p>I am new to html dom that's why i don't know too much about it. I want to execute two functions in single html dom event. Here is the code.</p>
  
  <pre><code>&lt;a id="link1" href="javascript:void(0)" onclick="document.getElementById('link1').style.background-color='red'; 
  setTimeout(function () {window.location.assign='http://www.google.com'}, 5000);"&gt; Read it&lt;/a&gt;
  </code></pre>
  
  <p>Here i want to execute two functions. One is background color and second is opening google after 5 seconds, How can i get it in html dom. Please help me thanks.</p>