Redirect to a url when the video playing ends using html5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<!DOCTYPE html> <html> <body> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#myVideo").bind('ended', function(){ window.open("http://www.mydoubts.in", "_blank"); //window.open("http://www.mydoubts.in", "_self"); }); }); </script> <video id="myVideo" width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> </video> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> |