facebook twitter youtube
in JavaScripts - 01 Jun, 2010, This Tutorial Has Been Viewed 7,067 Times.
by admin - no comments
How to check browser javascript enabled?
VN:F [1.9.22_1171]
Rating: 5.3/10 (3 votes cast)

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.

VN:F [1.9.22_1171]
Rating: 5.3/10 (3 votes cast)
How to check browser javascript enabled?, 5.3 out of 10 based on 3 ratings

Incoming search terms:




coded by nessus

Leave a Reply

Close
Please support the site
By clicking any of these buttons you help our site to get better