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?
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>
<noscript><p>Please enable JavaScript in your browser for better use of the website.</p></noscript>
html javascript, CSS , , .no-js CSS, JS , javascript (, , .with-js js-only).
, JS, , / , javascript , , body.
<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