Having issues running a simple function upon clicking on a hyperlink using Javascript

I am trying to use querySelectorAll to pickup all my href tags with classname “individual_email_click”. Whenever someone clicks on any of the hyperlink with this classname thereafter, I want to run a function call “open_email”. The below code is however not working. Anyone can help please? Thank you. This is the relevant javascript. document.addEventListener(‘DOMContentLoaded’, function() … Read more