Here is my HTML section..
<section id ="information">
<video id ="videoName" width="800" height="400" controls
onplay="myAnimationPicture()"">
<source src="video/videoName.mp4" ; type="video/mp4">
Your browser does not support the video tag.
</video>
</section>
Here is my Javascript section... document.getElementById('videoName').addEventListener('ended',deleteVideo,false);
function deleteVideo(e)
{
var elem = document.getElementById('videoName');// What you
want to do after the event
elem.remove();
}
Please let me know if it is even possible. What I eventually want to try and accomplish is after the user watches the video, the video is removed and is replaced with a horizontal menu for stats information.
Thank you,
Josh