Javascript Enabled Warning Message

How to detect if a browser’s javascript is enabled or disabled and display a message.

If javascript is not enabled on your visitor’s browser, here is a tip on how to warn them to turn it on or to use the latest browsers.

Place your warning message between the tags <NOSCRIPT> and </NOSCRIPT>. Here is an example:

<NOSCRIPT>
<font color=red>
<H3>This page uses JavaScript</H3>
<ul>
<li>Please use Netscape Navigator 3 or Internet Explorer 3
<li>Make sure that JavaScript is enabled in your browser.
</ul>
</font>
</NOSCRIPT>

JavaScript enabled web browsers will ignore all of the text between <NOSCRIPT> …and..</NOSCRIPT>. Browsers that can’t execute JavaScript will display your warning message in the location that you have placed the nonscrip message.

One Response

  1. Don't forget to close your LI tags!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Next Post » »