I have a image/button which when someone clicks on it and holds it for 2-3 seconds, I would like it to open up a url. I intend to use this as a hidden menu which can only be accessed if you click and hold for a few seconds, so that no-one inadvertently clicks on it.
I haven’t tried anything yet. I was looking for a simple method as I am just trying to get my head around JS at the moment.
New contributor
Dicey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.