How to determine if client turned javascript on / off from Rails?

I do not want to deal with users who have javascript disabled, so I just want to prevent them from using my application. I want to determine if a javascript user is enabled, so I can redirect them to a page that says they need to use javascript. I am sure this is in the request header. Anyone have any ideas how I can do this?

+3
source share
6 answers

A tag noscriptis the easiest solution, but not quite what you are looking for.

<noscript>Get outta here.</noscript>
+6
source

? <noscript>, , .

+3

. , . "", Javascript ( ?).

, , Javascript (, <noscript> Javascript, , JS).

+3

JavaScript . , NOSCRIPT, , - JavaScript.

JavaScript . , , JavaScript. CSS, , .

, JavaScript, -, div NOSCRIPT div, .

+3

html:

<noscript><meta http-equiv="refresh" content="0;url=http://example.com/use_js.html" /></noscript>

, , , meta refresh, ( ) , javascript javascript.

+1

javascript, , AJAXY, , . , javascript .

+1

Source: https://habr.com/ru/post/1763866/


All Articles