How to tell if Javascript is disabled in the browser

I want to tell the user if javascript is disabled in the browser and trying to access my site. My information will look like this: "Please enable javascript in your browser for better use of the website." So how to do this?

+5
source share
3 answers

If you keep your users informed of inclusion, that’s all you want to do, you don’t need to depend on the server-side code (in fact, I don’t think you can). Just use the element <noscript>:

<noscript><p>Please enable JavaScript in your browser for better use of the website.</p></noscript>
+11
source

html javascript, CSS , , .no-js CSS, JS , javascript (, , .with-js js-only).

, JS, , / , javascript , , body.

+4
<noscript> 
<div id="noscript-warning">Qaru works best with JavaScript enabled<img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"></div> 

u , , java script dsabled

+3
source

All Articles