javascript - Adding Event Listener is not working in Chrome for audio tags -


i developing music application playing songs on browser using html5. after creating playlists wanted play songs 1 one. using eventlistener work done. code given below :

document.getelementbyid('myplayer').addeventlistener('ended',function() {     alert("hi");       }); 

here myplayer id of audio tag when 1 song completed wanted put next song on player. method not getting triggered unable see alert on screen when song ends. using google chrome v28 this. can me this.


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -