noscript.js Example

Testing the noscript.js function

  1. Enable JavaScript in the user agent:
    1. If the JavaScript compiler can interpret the expressions in the noscript.js function, the alternative content will remain hidden.
    2. If it cannot, the alternative content will be rendered.
  2. Disable JavaScript in the user agent:
    1. The alternative content will be rendered.

The alternative, hidden content is hard-coded into the markup, and will be rendered here:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.