Using modern JavaScript APIs, you can detect a wide variety of browser capabilities and adapt the user experience accordingly. Start creating responsive web applications with this collection of tips and tricks.
Detects whether the page is being viewed on a mobile device or a desktop.
JavaScript, Browser · Oct 22, 2020
Use a media query to check if the user prefers a light or dark color scheme.
JavaScript, Browser · Nov 5, 2023
Checks if localStorage
is enabled.
JavaScript, Browser · Dec 31, 2020
Checks if sessionStorage
is enabled.
JavaScript, Browser · Dec 31, 2020