How do you find the specific element that is clicked in JavaScript?

My school has disabled the inspect element, and the element that I want to reference isn’t in the source code because it is generated later. I can use chrome bookmarks to execute javascript code, but I don’t have the element’s path to reference. How could I make something in js that gets the path of the element I click?