The drop-in noscript HTML snippet
Drop this into your <body>. Visitors with JavaScript enabled never see it; everyone else gets a clear message and a link to step-by-step instructions for their exact browser, in 38 languages.
<noscript>
For full functionality of this site it is necessary to enable JavaScript.
Here are the <a href="https://www.enablejavascript.io/">
instructions how to enable JavaScript in your web browser</a>.
</noscript> Already used by developers on millions of pages.
The link points to enablejavascript.io, where visitors choose their browser and get instructions in 38 languages, so you don't write or maintain them yourself.
That message (and a blank page for anyone with JavaScript off) is something you
fix with a <noscript> JavaScript fallback. Some visitors browse
with JavaScript disabled, by privacy extensions like NoScript, by corporate or
school policy, on locked-down or older devices. This is the developer's guide to
handling them: the drop-in noscript HTML snippet, the "you need to enable
JavaScript to run this app" message, detection patterns, and React, Next.js,
Vue, and Angular examples.