Know when "audio" tag html has been play

I'm using audio tags, what I want it's to count how many times has been played. My code it's like this: ; Then in a javascript file Var n=0; function doing(onplaying) { 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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准