title: How to addEventListener to non dom elements in Javascript?
body: <p>In Java, C#, Actionscript etc. Events are for classes whereas in Javascript it seems restricted to dom. I read here a sample for doing it with jQuery
  <a href="http://www.west-wind.com/weblog/posts/2010/May/27/NonDom-Element-Event-Binding-with-jQuery" rel="nofollow noreferrer">http://www.west-wind.com/weblog/posts/2010/May/27/NonDom-Element-Event-Binding-with-jQuery</a></p>
  
  <p>but if I don't need jQuery and if I want to understand the mechanism how would you do it ?</p>