Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
198
rated 0 times [  200] [ 2]  / answers: 1 / hits: 15476  / 13 Years ago, wed, february 22, 2012, 12:00:00

I'm looking for a solution to show the visitor of my website an info message, if he has no javascript enabled. I tried it with a message in a div, that is visible by default but immediately hidden by a jQuery function on start up. The problem is, that the message is visible for a short time (until it is hidden), what is very irritating.



Are there other ways to show a message, if JS is not enabled?



Thanks,
Konrad


More From » html

 Answers
4

Use the noscript tag:



<noscript>

<div class=awesome-fancy-styling>
This site requires JavaScript. I will only be visible if you have it disabled.
</div>
...
</noscript>


See https://developer.mozilla.org/en/HTML/Element/noscript.


[#87304] Monday, February 20, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alysas

Total Points: 616
Total Questions: 111
Total Answers: 124

Location: Slovenia
Member since Wed, Apr 6, 2022
2 Years ago
;