Course lesson

Add click interaction to HTML Canvas using JavaScript events

Being able to draw shapes is cool and all, but we want to add interactivity to our graphics! In this lesson, we will learn how to add 'click' handlers to our canvas elements using the addEventListener method.

Duration
6 min
Access
Pro
Transcript
Available

Being able to draw shapes is cool and all, but we want to add interactivity to our graphics! In this lesson, we will learn how to add 'click' handlers to our canvas elements using the addEventListener method.