I'm using audio tags, what I want it's to count how many times has been played.
My code it's like this:
n = n+1;
document.getElementById("numbers").value = n;
But it does not work, does someone know how to do this, like this or in a different way.
Thanks in advance. Note that in HTML you don't need to separate lines of code with ; - those ;s will actually appear as text.
以上就是Know when "audio" tag html has been play的详细内容，更多请关注web前端其它相关文章！