JavaScript: Dispatch event from one class and listen in another class
<p>Can I dispatch event from one class and listen it in another class in JAVASCRIPT. Can any one help me regarding this.</p>

<pre><code>function onButtonClickHandler(){ alert("Testing Add event listener"); }
test.addEventListener("buttonClick",onButtonClickHandler);
</code></pre>
