I need to show COMPLETELY different content when JavaScript is disabled. I know I can use <noscript> tag… but how can I hide the rest of the page when JavaScript is disabled?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
here is another solution:
inside your head below your normal stylesheet have:
that jsenabled.css would have:
while jsdisabled.css would have:
although the solution below works it does not validate
inside your noscript tag you can put some style tag that hides the rest of your content
ie:
I like using this method because it doesn’t make the page flash when javascript is enabled.