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?
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.
<noscript>
, , Javascript ( gmail), , , . , . , , JS, .
, , 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 .
" ". , javascript. AJAX , , ; POST HTML .
, , , , , . noscript, javascript ( ), - javascript - .
; - Google Maps, , Javascript. , noscript, , .
, " "; NoScript . Mozilla, NoScript 70 ; , , 10 - .
" ", , , , . , .
action. JavaScript , removeAttribute setAttribute. , , JS, , . - -JS, , <noscript> no-js (Mordenizr). , - , , , ., . , .
action
removeAttribute
setAttribute
no-js
Source: https://habr.com/ru/post/1748452/More articles:HTML/CSS: абсолютное позиционирование элементов внутри- htmlWill you publish the application without testing the device? - iphoneIs handling a dead project? - pythonCassandra failover vs other databases? - cassandraASP.NET MVC 2 EnableClientValidation: Validation Group - asp.net-mvc-2Haskell: a `show` option that does not wrap String and Char in quotation marks - pretty-printBrowser Zoom Level: Detect, Configure Using Javascript - BrowserRegister at GrailsUnitTestCase? - loggingC ++, sleep and loops - c ++Mime file type definition - mime-typesAll Articles