How to tell your website visitors that they don't have JavaScript Enabled

 


This is not going to be a long post. In today's web-world, JavaScript is really important for websites. It is used for display, logic, data fetch and display, and page manipulations. So, of your end user is not having JavaScript enabled on his browser, the experience is not going to be the way you wanted it to be!

So, how do we tell the user that JavaScript is not enabled on his browser, and maybe a small tutorial to enable it as well?

We have a specific tag for it in HTML! We'll make use of the tag, and give our end user a simple message. You can change it the way you want. Also, we'll give him a link to the tutorial to enable JavaScript. 

So, here's the simple code snippet you can put in your HTML:

<noscript>
	 For full functionality of this site it is necessary to enable JavaScript.
	 Here are the <a href="https://www.enable-javascript.com/" target="_blank" rel="noopener noreferrer">
	 instructions how to enable JavaScript in your web browser</a>.
</noscript>

That's it! Now, the message will only come if JavaScript is not enabled. If its enabled, the visitor will continue to enjoy the awesomeness of your website!


Thanks for Reading the Article. If you have reached this far, we hope that the article was useful to you! Please Like/Share/Follow us on FacebookTwitterTumblr.


Comments

Popular posts from this blog

Calculate Your CTC Hike Percentage

Java Program to Find a List of Prime Numbers (Step by Step)

Java Program to check Palindrome

What is my IP Address - How to find your IP address on Local Network using Command Prompt, and External Network using JavaScript Code

Reduce Server Load from Dynamic Page Search - Create a Dynamic JavaScript based Table filter