how to detect clicks with javascript

Solutions on MaxInterview for how to detect clicks with javascript by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to detect clicks with javascript"
Kamelia
31 Feb 2018
1element.addEventListener('click', function () {
2	alert('Clicked!')
3});