How to handle browsers where JavaScript may be disabled?

Suppose I am developing a web application that is heavily dependent on JavaScript and that uses AJAX for all POST commands to store data, etc.

How to deal with situations where the user can disable JavaScript? Is it unreasonable to require the user's browser to turn on? Are there any recommendations for these situations?

+3
source share
5 answers

Use tags <noscript>to let users know that they cannot use the site without Javascript. This is not the best practice, but it is common at the moment, and most users without it will lack rain.

, , Javascript ( gmail), , , . , . , , JS, .

+6

, , Javascript.

-javascript, , :

<noscript>
    This site works better with Javascript turned on.
</noscript>

.

Javascript, Javascript, , JS , .

, :

<form action="" method="POST">
    <input type="text" name="name">
    <input type="submit">
</form>

, Javascript. , .

, . Javascript AJAX .

+4

" ". , javascript. AJAX , , ; POST HTML .

, , , , , . noscript, javascript ( ), - javascript - .

.

+2

; - Google Maps, , Javascript. , noscript, , .

, " "; NoScript . Mozilla, NoScript 70 ; , , 10 - .

" ", , , , . , .

+1

action. JavaScript , removeAttribute setAttribute. , , JS, , . - -JS, , <noscript> no-js (Mordenizr). , - , , , .
, . , .

0

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


All Articles