<noscript>
The <noscript>
element displays its contents whenever JavaScript is disabled on the browser.
Syntax
<noscript>
<!-- What should display if JavaScript is not enabled or supported. -->
</noscript>
The <noscript>
element has no attributes and what is nested within the tag will be displayed.
Example
In the example below, if JavaScript isn’t enabled, the <script>
element will not work and the content inside the <noscript>
element will render:
<script src="someScript.js"></script><noscript><p>Please enable JavaScript for this page to load. Learn how to<a href="https://support.google.com/adsense/answer/12654?hl=en">here</a></p></noscript>
The output might look like this if JavaScript is disabled or not available:
All contributors
- garanews222 total contributions
- BrandonDusch580 total contributions
- Not-Ethan48 total contributions
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.