Saturday, January 21, 2012

How to Detect Javascript is disabled or not ?

Hello friends, After a very long time I write this blog.

Today I got requirement from my friend that he wants to check javascript is enabled or not as the page load. And if javascript is disable then he wants to redirect to another page.

As many of you know that we can put "noscript" tag in the page to execute the code while javascript is disabled.


So i take noscript tag and put meta tag inside that to redirect to another page while javascript is disabled


Below is the code of the same.




1 comment:

  1. Thanks for sharing your knowledge chirag, It is very usefull for me in my current project

    ReplyDelete