File: noscript.html

package info (click to toggle)
wdg-html-reference 2.0-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 2,748 kB
  • ctags: 295
  • sloc: makefile: 41
file content (83 lines) | stat: -rw-r--r-- 5,828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
   "http://www.w3.org/TR/REC-html40/strict.dtd">
<html lang=en>
<head>
<title>NOSCRIPT - Non-script Content</title>
<link rev=Made href="mailto:liam@htmlhelp.com">
<link rel=Start href="../index.html">
<link rel=Glossary href="http://www.htmlhelp.com/glossary/glossary.html">
<link rel=Copyright href="http://www.htmlhelp.com/copyright.html">
<link rel=StyleSheet href="../style.css" type="text/css">
<link rel=StyleSheet href="../aural.css" type="text/css" media=aural>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="author" content="Liam Quinn">
<meta name="description" content="A description of HTML 4.0's NOSCRIPT element for alternate content when client-side scripting is disabled.">
<meta name="keywords" content="NOSCRIPT, noscript element, script, javascript, JavaScript, VBScript, vbscript, alternative, rendering, content, HyperText Markup Language, HTML, HTML4, HTML 4.0, Web Design Group, WDG, &lt;noscript&gt; tag, &lt;NOSCRIPT&gt; tag">
<script type="text/javascript">
<!--
function toggle() {
  if (document.all.toggler.value == "Hide non-strict elements") {
     document.styleSheets[0].addRule("span.transitional", "display:none");
     document.styleSheets[0].addRule(".transitional", "speak:none");
     document.all.toggler.value = "Show non-strict elements";
  } else {
     document.styleSheets[0].addRule("span.transitional", "display:inline");
     document.styleSheets[0].addRule(".transitional", "speak:inherit");
     document.all.toggler.value = "Hide non-strict elements";
  }
}
// -->
</script>
</head>
<body>
<h2><img src="../wdglogo1.gif" width=250 height=83 alt="The Web Design Group"></h2>
<h1>NOSCRIPT - Non-script Content</h1>
<script type="text/javascript">
<!--
  if (document.styleSheets) {
    var gt;
    gt = unescape(new String("%3E"));

    document.write("<p" + gt + "<input type=button value=\"Hide non-strict elements\" id=toggler accesskey=s onclick=\"toggle()\"" + gt + "<\/p" + gt);
  }
// -->
</script>
<table>
  <tr valign=top>
    <th>Syntax</th>
    <td><strong class=required>&lt;NOSCRIPT&gt;</strong>...<strong class=required>&lt;/NOSCRIPT&gt;</strong></td>
  </tr>
  <tr valign=top>
    <th>Attribute Specifications</th>
    <td>
      <ul>
        <li><a href="../attrs.html">common attributes</a></li>
      </ul>
    </td>
  </tr>
  <tr valign=top>
    <th>Contents</th>
    <td><a href="../block.html">Block-level elements</a><span class=transitional>, <a href="../inline.html">inline elements</a></span></td>
  </tr>
  <tr valign=top>
    <th>Contained in</th>
    <td><span class=transitional><a href="../special/applet.html">APPLET</a>, </span><a href="blockquote.html">BLOCKQUOTE</a>, <a href="../html/body.html">BODY</a>, <a href="../forms/button.html">BUTTON</a>, <span class=transitional><a href="center.html">CENTER</a>, </span><a href="../lists/dd.html">DD</a>, <a href="../phrase/del.html">DEL</a>, <a href="div.html">DIV</a>, <a href="../forms/fieldset.html">FIELDSET</a>, <a href="../forms/form.html">FORM</a>, <span class=transitional><a href="../special/iframe.html">IFRAME</a>, </span><a href="../phrase/ins.html">INS</a>, <a href="../lists/li.html">LI</a>, <a href="../special/map.html">MAP</a>, <span class=transitional><a href="../frames/noframes.html">NOFRAMES</a>, </span>NOSCRIPT, <a href="../special/object.html">OBJECT</a>, <a href="../tables/td.html">TD</a>, <a href="../tables/th.html">TH</a></td>
  </tr>
</table>
<p>The <strong class=html>NOSCRIPT</strong> element provides <em>alternate content for a client-side script</em> that was not executed. A script will fail to execute if the browser does not support the scripting language or if the user has disabled client-side scripting. <strong class=html>NOSCRIPT</strong> should follow the <strong class=html><a href="../special/script.html">SCRIPT</a></strong> element for which it provides alternate content.</p>
<div class=note>
<p>Note that most browsers will fail to render the contents of <strong class=html>NOSCRIPT</strong> if the scripting language is not supported and the user has enabled client-side scripting. Most browsers will only render <strong class=html>NOSCRIPT</strong> when the user has disabled client-side scripting.</p>
<p>Also note that Netscape Navigator2.<var>x</var> supports JavaScript1.0 but still renders all <strong class=html>NOSCRIPT</strong> content.</p>
</div>
<p>Since client-side scripts usually provide dynamic interactivity that cannot be replaced by static content, the <strong class=html>NOSCRIPT</strong> element is generally not useful. Authors should try to use client-side scripts as optional enhancements that are not integral components of the Web page. In the case of form validation, any error checking done by the client-side script should be repeated by the <abbr class=initialism title="Common Gateway Interface">CGI</abbr> script or Java servlet that handles the submission at the server.</p>
<h2>More Information</h2>
<ul>
  <li><a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#edef-NOSCRIPT">NOSCRIPT in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTML4.0 Recommendation</a></li>
</ul>
<div class=footer>
<address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> &lt;<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>&gt;</address>
<p class=toolbar><a href="http://www.htmlhelp.com/"><img src="../wdglogo-small.gif" width=105 height=40 alt="Web Design Group ~"></a> <a href="../index.html" rel=Start>HTML4.0Reference</a>~ <a href="../olist.html">ElementsbyFunction</a>~ <a href="../alist.html">ElementsAlphabetically</a></p>
<p class=copyright><a href="http://www.htmlhelp.com/copyright.html">Copyright </a> 1998 Liam Quinn. All rights reserved.</p>
</div>
</body>
</html>