How do I use the MediaEnded event in Javascript to de开发者_开发知识库tect the end of a playing video (QuickTime) and use that event to open a new web page?
HTML5 makes this quite simple:
document.getElementById('your_video').onended = function() {
newWindow = window.open(url, 'Foo', 'height=250,width = 200');
if (window.focus) {newWindow.focus()}
}
精彩评论