This example uses the HTML DOM to assign an "onplay" event to a video element.
Press play.
Video courtesy of Big Buck Bunny.