tags:

views:

52

answers:

3

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
thank this is my first time i know this
moustafa
+3  A: 

No JQuery possible if javascript is disable

Mariano
+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
nice tip thanks for that
moustafa