I couldn't get it working with my HTML event-handler definition
<table ... onclick="f()">
Inside f() the 'event' was undefined, and all I tried with 'this',
'target', 'document', function parameters, access through elements,
and whatnot, did not work. :-(
(And all I found on that topic on the net uses JS event handlers,
addEventListener, not the HTML onclick().)
Installing a JS event handler like this (for example) works:
function f(ev) { alert(ev.target.closest('img').title); }
document.addEventListener('click', f);
I wanted to stay with the onclick="f()" logic, but okay... :-/
Janis