title: After OnClick is set to null how do I have Onclick behavior again in JavaScript
body: <p>I have Div element and Im setting its onClick event to null, like this.</p>
  <pre><code>child.onclick = null;
  </code></pre>
  <p>In this case child is a DOM element represent that DIV element.</p>
  <p>Now the <code>onclick</code> event is no longer there, and now I want to have it again like this.</p>
  <pre><code>child.onclick = new Function();
  </code></pre>
  <p>But that way does not work. I just want to have <code>onclick</code> behavior as it was before it is set to null.</p>
  <p>Can anyone help?</p>