How to check JavaScript disable in browser?

It is very easy to detect whether JavaScript is disable on browser or not?

You just need to put <noscript> tag in your HTML body. For example,

<noscript>
<div>Javascript is disable on your browser</div>
</noscript>

If JavaScript is disable then above HTML text will be print on html document.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s