mobile version of the click() method?
The problem I’m trying to solve is, on a website when a user taps an image const portfolioImg = document.getElementsByClassName("fusion-image-element")[0].getElementsByTagName("img")
which brings up the image in an overlay, a mobile version of the .click() method is called on an icon const portfolioImgFsBtn = document.getElementsByClassName("ilightbox-fullscreen");
. In this case, I want to apply (mobile version of) the click() method on an element, as opposed to listening for a touch event on the element like addEventListener('touchstart')
.