Syntax
<noscript>
<p>This site requires JavaScript to function.</p>
</noscript>Examples
Basic Warning Message
Informing users that JavaScript is required.
<noscript>
<p>Please enable JavaScript to use this application.</p>
</noscript>Fallback Content
Providing a non-JavaScript fallback for an interactive feature.
<div id="live-chart"></div>
<noscript>
<img src="/static-chart.png" alt="Sales chart (static fallback)">
</noscript>Styled Notice
A styled banner shown only without JavaScript.
<noscript>
<div style="background: #fef3c7; padding: 12px; text-align: center;">
Some features are unavailable with JavaScript disabled.
</div>
</noscript>Best practices
- Use noscript to gracefully inform users rather than leaving them with a blank or broken page
- Where practical, provide genuine fallback content or functionality, not just a warning message
- Remember content inside noscript is only rendered when scripting is off — do not rely on it for anything that should also work normally
- Test your site with JavaScript disabled occasionally to see what your users without it actually experience
Browser compatibility
Support applies to the named feature, not every attribute or behaviour in this article. Versions refer to browsers, not operating systems.
<noscript>
Desktop
- Chrome
- Supported
From 1 - Firefox
- Supported
From 1 - Safari
- Supported
From 3 - Edge
- Supported
From 12 - Opera
- Supported
From 15
Mobile
- Safari on iOS
- Supported
From 2 - Chrome for Android
- Supported
From 18 - Firefox for Android
- Supported
From 4 - Samsung Internet
- Supported
From 1.0
MDN BCD record for this feature · MDN reference
Support history and limitations
Chrome
- From 1
Firefox
- From 1
Safari
- From 3
Edge
- From 12
Opera
- From 15
Safari on iOS
- From 2
Chrome for Android
- From 18
Firefox for Android
- From 4
Samsung Internet
- From 1.0
MDN BCD 8.1.5 · Dataset built 2026-10-08 · Mapping reviewed 2026-10-21. These dates are not individual browser-test or claim-verification dates. Unknown means the data does not establish support.