Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Firefox totally ignores <noscript> tag

more options

As title, anything within noscript tags is ignored by FF 58.01 x64 W10 javascript disabled. Same code on chrome works as expected.

As example

http://paste.debian.net/1008596/

But as I said, it doesn't matter what I add between the tags, it is never processed

As title, anything within noscript tags is ignored by FF 58.01 x64 W10 javascript disabled. Same code on chrome works as expected. As example http://paste.debian.net/1008596/ But as I said, it doesn't matter what I add between the tags, it is never processed

Chosen solution

Hi Rookie91.

What mechanism do you use for disabling JavaScript in Firefox?

Read this answer in context 👍 1

All Replies (3)

more options

Chosen Solution

Hi Rookie91.

What mechanism do you use for disabling JavaScript in Firefox?

more options

Michal Stanke said

Hi Rookie91. What mechanism do you use for disabling JavaScript in Firefox?

Hi Michal, glad you mentioned it, disabling js from about:config fixed it. I was using a shitty addon (disable javascript) but it seems it doesn't actually disable it, I guess it just parses for <script> tags and removes their content, or something. Anyway, problem solved, thank you.

more options

Had the same issue with "noscript" tag not appearing when blocking using add-on, which is how I like to test. If I disable using about:config the "noscript" tag will display fine.

Since most regular users are blocking with add-ons, the solution I found was to reverse the assumption. Assume the user has JavaScript enabled. Then display in the page a "temporary" JavaScript error, which we will then remove using JavaScript after the page has loaded. If JavaScript is disabled the error will remain.

  • <script>
  • function removeErrorDiv() {
  • var err = document.getElementById("javascript-error");
  • err.parentNode.removeChild(err);
  • }
  • </script>
  • <body onload="
  • removeErrorDiv()">
  • <body >
  • div id="javascript-error" Error: JavaScript is disabled.
  • /div

Detecting for JavaScript capability like this will work if the user is blocking using add-ons or about:config. This renders the "noscript" tag depreciated, unless anyone can think of a useful purpose?

Modified by chromacrypto