Last updated on June 3rd, 2016 at 10:59 am
How to Detect browser Javascript enabled?
Here is a very simple but a powerful idea of checking whether your client’s browser is Javascript enabled or not
Just add tag the noscript tag to your web page
<noscript> SOME WARNING MESSAGES </noscript>
On your webpage simple, a sample is given below
<noscript> <span style="color: red;"> <h3>This Webpage uses JavaScript</h3> <ul> <li>Seems like this website is not supported on your outdated web browser.</li> <li>Please use some latest version of your web browser.</li> <li>And also make sure that JavaScript is enabled on your browser.</li> </ul> </span></noscript>
JavaScript enabled web browsers will ignore all of the text between <NOSCRIPT> …and..</NOSCRIPT>. Browsers that can’t execute JavaScript will display the warning message in the location where you have placed the NOSCRIPT tag.