I have a code in which should only be executed after an onclick event. On mobile devices its fine because I use touchstart and touchend. Is there an event similar to touchend for use on a computer?
My code currently looks similar to..
document.getElementById('trigger-box').addEventListener(function(e) {
// the event will be used later
// my code
});
I have tried searching the internet for an answer but unfortunately couldn't find an answer. Therefore, I have posted my question here.
click
as a sequence omousedown
andmouseup
for the same element. So your expires would be connected to themouseup
.