Is it possible to make a reference to a html element by a string (preferably a query selector), i made a mouse tracker which should add the target element, but if you reload the page it should still be able to find the same element.
i tried going with event.composedPath()
and event.target, But both dont seem to work
the string will be saved in a json file
'#' + element.iddivorlabelor any other tag