Posts by Bruno Rhafael • 21 points
1 post
-
2
votes1
answer2654
viewsQ: How to add onclick event to play audio on canvas?
By clicking on an image I want to perform a sound. How can I do this function using the event onclick? Code: window.onload = function myCanvas() { var c = document.getElementById("myCanvas"); var…