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 Salary Hike Percentage - Online Calculator to find your New Salary

Find the Longest Streak of 1's in a Binary Array using Java Code

Java Program to read Excel File and Load into Array

Java Program to Read a Properties file and return a Property Value

Create a File logging Utility using Java Code