I have a div containing a video. The background of the div features a fake \"play\" button, which I\'ve designed to use as the play button instead of Youtube\'s standard video
Here's what you're looking for:
http://jsfiddle.net/7Gznb/
// when video ends function onPlayerStateChange(event) { if(event.data === 0) { alert('done'); //do something here }
That's the Youtube API by the way