title: javascript firing custom event for chrome
body: <p>can you give me an example for chrome where i have something like this:  </p>
  
  <pre><code>function checkVideoStatus(vidElement){
     var currentTime = vidElement.currentTime;
     //now wait 5 seconds
     var updatedTime = vidElement.currentTime;
     //now check if video has freezed
     if(updatedTime == currentTime){
        //fire videoFreeze Event
     }
  
  }
  </code></pre>
  
  <p>So i would want to fire this event here. Also, is it really necessary to fire this event, since i alredy can put a relevant method call here to do what i want accordingly??</p>
  
  <p>Is it in JS the events are only like onChange, onMouseOver etc??</p>