How to find out if JavaScript is disabled?

12

How can I check and display the message to the user that the browser's JavaScript is disabled?

For example, it will do something, and if its JavaScript is disabled I show this message to it, so that it will enable in the browser. What code can help me with this?

    
asked by anonymous 15.09.2014 / 16:46

1 answer

17

The <noscript> tag exists for this purpose. It is rendered only when JavaScript is disabled or is not supported.

An example would be:

<noscript>Para continuar habilite o JavaScript</noscript>

More details on documentation .

    
15.09.2014 / 16:49