Technique summary for non-essential scripts
There are two types of non-essential scripts: those that simply enhance the visual presentation but do not communicate any additional information and those that provide an alternative way of performing function on the page. No additional accessibility techniques are required for non-essential scripts.
For example, onMouseOver is often used to highlight the item by changing the background color. It is also often used to produce purely decorative effects such as highlighting an image or changing the color of an element's text. Scripts of this type do not affect accessibility and do not require additional techniques.
Figure 1 illustrates an example of a script that provides and alternative way of performing function on a page. This shopping site provides a pair of graphical arrows pointing up and down, that when selected, increase or decrease the desired quantity of the item in the shopping cart.
The JavaScript is actually associated with a small image map and the appropriate alternative text representing the function of selecting the map area. Since the quantity desired can also be entered directly into the "Qty"
field just as easily with the keyboard without clicking the JavaScript
arrow functions, this would be considered non-essential scripting. Since
there is an alternative (without using noscript) way of accomplishing the
essential task of entering the quantity, the script would not need to be
made directly accessible:

...
<map name=uptown3407>
<area cords=0,0,10,9 href="JavaScript:quantity(3407)" alt="add one..." />
<area cords=0,11,10,20 href="JavaScript:(3407)" alt="decrease" />
</map>
...
- The following technique is recommended to enhance accessibility of non-essential scripts. The noscript element is used to politely tell the non-JavaScript user that their browser will not prevent them from accessing the important information on the site.
...
<body>
<noscript>
<p> Your browser does not support scripting, however scripting is not necessary to perform the functionality on this site.</p
</noscript>
<script language="JavaScript1.1" type="text/javascript">
<!-- ...
| Required: | Recommended: |
|---|---|
| None Required | Use noscript element. |
