Skip to content
jshacks.dev

Tag

events

7 posts

Flat illustration of jobs on a conveyor heading to a rack of workers, with the Google Chrome, Redis, RabbitMQ and Apache Kafka logos.
Browser

How to Detect Online and Offline Status

Detect online and offline status with navigator.onLine and the online and offline events, understand their limits, probe with fetch and queue requests safely.

8 min read
Flat illustration of one event fanning out to several listeners, with the JavaScript, Google Chrome, Socket.io and Redis logos.
Browser

How to Handle Paste Events in JavaScript

Handle paste events in JavaScript with clipboardData: read text, HTML and files, strip formatting, paste images, sanitize input and keep undo working.

8 min read