Tag Archives: Touch events for mobile and desktop

Coding an HTML button that works on mobile and desktop ( touch and mouse)

Summary This howto demonstrates one method for getting a button to work on both mobile and desktop ( touch and mouse click) without using jQuery. it uses vanilla JavaScript and should work on most platforms. The Problem While coding a site I wanted a button to fire an event that hid some items on the […]