Input & Interaction
Touch Events API
Multi-touch gesture input tracking for smartphones and touchscreens.
Checking support...
Feature Not SupportedThis browser does not support the Touch Events API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
window.addEventListener('touchstart', (e) => {
console.log(e.touches.length);
});About the Touch Events API Web API
Touch Events API tracks multi-touch touchpoints across touch devices.
Specification:W3C & WHATWG Web API Standard
Sponsored Content