Hide Contents If Javascript is Disabled

Currently most of the content rich websites depend mostly on Javascript. But If the user has Javascript disabled in his browser your website will fail to perform as you expected.

To make sure that the user should enable Javascript to access your website, you can use the noscript tag.

<style type="text/css">
<div class="noscriptmsg">
You don't have javascript enabled in your browser. Please enable javascript to access this website. Thank you.

You can add this code just below closing the body tag.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s