How to find out if Javascript is disabled?

Asked

Viewed 1,570 times

13

How can I check and show the message to the user that the browser Javascript is disabled?

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

1 answer

18


There is a tag <noscript> for this purpose. It is rendered only when Javascript is disabled or not supported.

An example would be:

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

More details on documentation.

  • Thanks for the reply, I will check this documentation of Mozilla and see if it works !

  • Thank you again. This <noscript> is the guy, just reading the functionality of it here and what it’s for, I saw that he is a great fighter, the javascript disabled in browsers, I did not know him and now I can solve. Hug !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.