HEELPBOOK - DETECT IF JAVASCRIPT IS ENABLED (HTML CODE) ############################# Because of the emergence of Ajax, people don't disable JavaScript much nowadays. I don't know the percentage of people having disabled JavaScript. It is likely under 5%. But if you have a website visited by millions of visitors every month, even 1% is matter! This is why I wrote the following code: The text under the noscript tag will be displayed if JavaScript is disabled or not supported. The text under the span tag is not displayed by default and will be showed using JavaScript, this is why we can be sure JavaScript is enabled in that case. You can obviously change the content of the noscript and span tags. You could, for example, hide a form which uses JavaScript validation to non-JavaScript users by putting the HTML code of the form under the span tag. ############ ARTICLE INFO ############# Article Month: February Article Date: 27/02/2013 Permalink: http://heelpbook.altervista.org/2013/detect-if-javascript-is-enabled-html-code/ Source: http://www.logikdev.com/2011/04/19/detect-javascript-enabled/ Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook Linkedin: http://it.linkedin.com/pub/stefano-maggi/27/73a/b20 Google+ : https://plus.google.com/116990277568167008289/posts