This Tutorial Has Been Viewed 3,689 Times.
Here is a very simple but a powerful idea of checking whether your client’s browser is javascript enabled or not
Just add tag
<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.
You will also be interested in ,
- Validate email address using javascript
- Give a welcome alert message to your visitors using javascript
- Displaying Text from User On Your Webpage
- Block key press using javascript
- Limit Textarea Characters Using Javascript
- Javascript Clock
- Agree Before Entry Using Javascript
- New Year and Christmas count down script using javascript
- LED Display or Scrolling text using javascript
- Replacing images with time intervals using jquery
Categories: JavaScripts, scripts