Question: If the user's browser cannot execute JavaScript code, can I display a warning for the user?
Answer:
Yes, you can display a special warning for users of JavaScript-incapable browsers.
Put your warning text between the tags
<NOSCRIPT>
and
</NOSCRIPT>.
Here's an example:
<NOSCRIPT> <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> </NOSCRIPT>JavaScript-enabled browsers will ignore everything between
<NOSCRIPT>
and
</NOSCRIPT>.
Browsers that cannot execute JavaScript will display your message on the page.
NOTE: The
<NOSCRIPT>
tag is not supported by Netscape Navigator 2.
Therefore, your message will be visible to Netscape 2 users
even if JavaScript is enabled in their browser.
Keep this in mind and choose a proper wording that won't mislead
Netscape 2 users. (For example, the above message assumes that
your script requires at least version 3 of the browser.)
Copyright © 1999-2008, JavaScripter.net.