HTML and CSS Reference
In-Depth Information
Figure 2.13 Example 2.5 output in a JavaScript-enabled browser.
The < noscript > Tag. Modern browsers provide a set of tags called <noscript></noscript>
that enable you to provide alternative information to browsers that are either unable to read
JavaScript or have it turned off. All JavaScript-enabled browsers recognize the <noscript> tag.
They will just ignore whatever is between <noscript> and </noscript> . Browsers that do not
support JavaScript do not recognize the <noscript> tags. They will ignore the tags but will
display whatever is in between them. See Example 2.6.
EXAMPLE 2.6
<html>
<head>
<title>Has JavaScript been turned off?</title>
</head>
<body bgColor="blue">
<font color="white">
<h3>
1
<script type="text/javascript" >
2
document.write("Your browser supports JavaScript!");
</script>
3
<noscript>
Please turn JavaScript on if you want to see this page!<br>
<em>
4
Firefox &gt; Tools &gt; Options &gt; Content &gt;
Enable JavaScript<br />
IE &gt; Tools &gt; Internet Options &gt; Security &gt;
Custom Level &gt;Security Setting &gt; Scripting &gt;
Enable<br />
</em>
5
</noscript>
Continues
 
Search WWH ::




Custom Search