Future technologies for innovation
Guide Icon


How to catch all link clicks with JavaScript

Catching click events inside your website document is one of the most useful skills to master when doing web development. When you are building your website, most likely your users are going to be interacting with the user interface. When users click on the elements on your website, you want to be able to program your website to do different things when the user clicks on different elements. With this example code below, you’ll be able to catch all the clicks on every anchor-element on your website....

February 17, 2022 · 1 min · Miika von Bell