i want jquery or php code tell the visitor if the java script is disabiles
+9
A:
To tell the visitor if javascript is disabled you can just add a message in a <noscript>
tag
ex: <noscript>Javscript is disabled!</noscript>
The message will only appear if javascript is disabled.
Alex
2010-02-24 19:54:30
thank this is my first time i know this
moustafa
2010-02-24 19:57:33
+6
A:
Here's an alternative to using <noscript>
:
HTML:
<div id='no-javascript'>Hey, you don't have javascript!</div>
...
<script type='text/javascript'>
$("body").addClass("js");
</script>
CSS:
#no-javascript {color:red;}
body.js #no-javascript {display:none;}
Dan
2010-02-24 19:56:30