Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript video after play

<script type="text/javascript">
// Do not name the function "play()"
function playVideo(){
    var video = document.getElementById('video');
    video.play();
    video.addEventListener('ended',function(){
        window.location = 'http://www.google.com';
    });
}
</script>
<video controls id="video" width="770" height="882" onclick="playVideo()">
    <source src="video/Motion.mp4" type="video/mp4" />
</video>
Comment

PREVIOUS NEXT
Code Example
Javascript :: p5 js cdn 
Javascript :: block enter key using jquery 
Javascript :: convert text to binary javascript 
Javascript :: write json file in node js 
Javascript :: discord.js join voice channel 
Javascript :: js is prime 
Javascript :: angular date input value 
Javascript :: javascript remove all the common value from array 
Javascript :: check if a string is alphanumeric 
Javascript :: javascript object to params string 
Javascript :: single quote error in react prettier 
Javascript :: js remove json value duplicates 
Javascript :: ^(?:(+|00)d{1,3}[-s.])?(()?d{3,10}())?(?:[-s.)]d{2,7}([-s.]d{2,5})?([-s.]d{2})?)?$ 
Javascript :: equation+ automate + expression reguliere 
Javascript :: console message inspector javascript 
Javascript :: how to understand if nodejs is out of memory 
Javascript :: fill checkbox javascript 
Javascript :: jquery on scroll down 
Javascript :: javscript .split().reverse.joni 
Javascript :: jest test coverage command 
Javascript :: javascript clone array without reference 
Javascript :: javascript get boundary client rect 
Javascript :: capture image from video element 
Javascript :: axios not defined 
Javascript :: angular 10 set error on form controle 
Javascript :: change text using javascript 
Javascript :: jquery scroll to div callback 
Javascript :: db.json 
Javascript :: Codewars Square(n) Sum 
Javascript :: how to get id from url in javascript 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =