I just want a bit of javascript to return the title of a button element that the user is hovering on. I don’t want to use getElementById(...) because I am making a function that works without referring to an element but it’s ID. Is this possible?
Many thanks :).
You can use
thiswhich refers to current element like this:Working Example