我有一个自动播放视频的页面。观看视频后如何重定向和/或显示网页?谢谢。
最佳答案
使用the ended
event :
var videoElement = document.querySelector('video'); // or whatever
videoElement.addEventListener('ended', function (){
window.location = 'http://newpage.com';
});
在此处查看实际效果:http://jsfiddle.net/bCBhD/
关于html - HTML5 视频完成后显示新网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13080113/