Languages
[Edit]
EN

HTML - detect if JavaScript is disabled

4 points
Created by:
Giles-Whittaker
319

In this short article, we would like to show how to detect if JavaScript is disabled / blocked.

Quick solution:

<!doctype html>
<html>
<body>
  <noscript>
    If you see this text it means the JavaScript is disabled.
  </noscript>
</body>
</html>

Where <noscript> content will be displayed only if JavaScript is disabled or not available.

Screenshot:

<noscript> message example when JavaScript is disabled.
<noscript> message example when JavaScript is disabled.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join