Track ALL clicked elements using JavaScript
问题 I want to track ALL elements that are clicked on a HTML-page. I need a good way to reference exactly wich element was clicked (so I will be able to replay the clicks on a identical separate HTML-page later on). Is there a good way to reference wich element that was clicked? I could add unique id's and classnames to every single element on the page. But i figure there must be a nother way? The HTML-page wich I will be replaying the clicks on will be identical. Something lite this (but more