I made an html page for my photos. When clicking on some area, a lightbox sort of feature appears. So basically a part of the page which is not visible up to then comes in the middle of the screen. I have a close button to get rid of it if someone wants, as well as the esc button.
However, and especially on phones, everyone clicks the phone back button. So I a trying to assign to the back button an event, that instead of "go back to the previous page" just "get rid of the lightbox".
Is that possible?
Many thanks, Elias