V
V
Vyacheslav Lebedev2015-02-25 10:32:07
JavaScript
Vyacheslav Lebedev, 2015-02-25 10:32:07

How to put stubs for old versions of browsers, disabled javascript and cookies?

Good afternoon! :)
Tell me how to put a stub for old versions of browsers, disabled javascript and cookies?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Popov, 2015-02-25
@slavikse

The two easiest ways:
< noscript /> the content of this tag will be displayed if js is disabled
+ add a no-js class to the tag, which is replaced (deleted?) by a different class when the page is loaded during initialization through js. Therefore, through css, display some kind of stub for the case with html.no-js, otherwise hidden.

P
Petr Moskvin, 2015-02-25
@peter-moskvin

As browser developers have repeatedly stated, you need to check features. There is document.cookie to check cookie

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question