title: HTML5 Video fire event on play (dim page)
body: <p>when I use this schript:</p>
  
  <pre><code>&lt;script&gt;
  myVid=document.getElementById("video1");
  myVid.oncanplay=alert("Can start playing video");
  &lt;/script&gt;
  </code></pre>
  
  <p><a href="http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_av_event_canplay" rel="nofollow">http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_av_event_canplay</a></p>
  
  <p>a window pops up when video can play.</p>
  
  <p>I would like to change the css from a div when the video starts playing (dim the background)
  Can I get that work with the play event?</p>
  
  <p>Regards</p>
  
  <p>Torsten</p>