This example uses the HTML DOM to assign an "onpause" event to a video element.

Play and pause the video.

Video courtesy of Big Buck Bunny.