How to write custom event which gets fired when user click three times
<p>i am trying to write a custom event which should get fire when user click three times on any html node.</p>

<p>i know that i can create even using </p>

<pre><code>var evt = document.createEvent("Event");
evt.initEvent("myEvent",true,true);
</code></pre>

<p>but i am not getting how i will capture that three times click event.</p>

<p>I will be appreciated if some one can suggest me the write approach for this.</p>

<p>Thanks!!!</p>
